🎨 Isolate infra and ui components

The src/base.rs is still to be reworked.
This commit is contained in:
2024-04-04 14:27:58 +02:00
parent 92bf860101
commit 0ce0764204
67 changed files with 64 additions and 59 deletions

View File

@@ -0,0 +1,15 @@
use dioxus::prelude::*;
use tracing::debug;
use crate::base::SESSION;
use crate::ui::components::contacts_window::ContactsWindow;
pub fn MainWindow() -> Element {
debug!("MainWindow rendering");
rsx! {
if SESSION.read().is_logged {
ContactsWindow {}
}
}
}