/ src / layouts / app.rs
app.rs
 1  use gpui::{prelude::*, *};
 2  
 3  pub struct AppView {}
 4  
 5  impl Render for AppView {
 6    fn render(
 7      &mut self,
 8      _: &mut Window,
 9      cx: &mut Context<Self>,
10    ) -> impl IntoElement {
11      div().bg(rgb(0x121214)).size_full().flex()
12      // .child(ServerSideBar::new())
13      // .child(PrivateChannelsBar::new(self.app_state.clone()))
14      // .child(Channel::new(self.app_state.clone()))
15    }
16  }
17  
18  impl AppView {
19    pub fn new(window: &mut Window, cx: &mut Context<Self>) -> Self {
20      Self {}
21    }
22  }