🚧 Add a ChatPanel placeholder component
This commit is contained in:
18
src/ui/components/chat_panel.rs
Normal file
18
src/ui/components/chat_panel.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
use dioxus::prelude::*;
|
||||
|
||||
turf::style_sheet!("src/ui/components/chat_panel.scss");
|
||||
|
||||
#[component]
|
||||
pub fn ChatPanel(name: String) -> Element {
|
||||
rsx! {
|
||||
style { {STYLE_SHEET} },
|
||||
|
||||
div {
|
||||
class: ClassName::CHAT_PANEL,
|
||||
|
||||
div {
|
||||
{name}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
6
src/ui/components/chat_panel.scss
Normal file
6
src/ui/components/chat_panel.scss
Normal file
@@ -0,0 +1,6 @@
|
||||
@import "../_base.scss";
|
||||
@import "./_panel.scss";
|
||||
|
||||
.chat-panel {
|
||||
@include panel();
|
||||
}
|
Reference in New Issue
Block a user