use shared::schema::{EditorElementUpdate, UserQuery};
use yewdux::prelude::*;

#[derive(Debug, PartialEq, Eq, Clone, Store)]
pub struct DeviceInfo {
    pub is_online: bool,
    pub is_web: bool,
    pub is_authed: bool,
    pub is_aside: bool,
    pub is_light_mode: bool,
    pub profile: UserQuery,

}

impl Default for DeviceInfo {
    fn default() -> Self {
        Self {
            is_online: false,
            is_web: cfg!(feature = "web"),
            is_authed: false,
            is_aside: false,
            is_light_mode: false,
            profile: UserQuery::default() ,
        }
    }
}
