Use of Conversations layout

This commit is contained in:
2024-05-26 11:39:18 +02:00
parent c8e8e2da67
commit 62015f8d13
5 changed files with 88 additions and 153 deletions

View File

@@ -1,3 +1,13 @@
pub(crate) mod components;
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);