15 lines
487 B
Rust
15 lines
487 B
Rust
pub(crate) mod components;
|
|
pub(crate) mod hooks;
|
|
pub(crate) mod layouts;
|
|
pub(crate) mod store;
|
|
|
|
use dioxus::prelude::{GlobalSignal, Signal};
|
|
|
|
use super::domain::model::{account::Account, session::Session};
|
|
use store::Store;
|
|
|
|
pub static STORE: GlobalSignal<Store> = Signal::global(Store::new);
|
|
// TODO: Merge ACCOUNT and SESSION
|
|
pub static ACCOUNT: GlobalSignal<Account> = Signal::global(|| Account::new(&STORE));
|
|
pub static SESSION: GlobalSignal<Session> = Signal::global(Session::new);
|