Stub in a ChatPanel

Max Brunsfeld created

Change summary

zed/src/chat_panel.rs | 23 +++++++++++++++++++++++
zed/src/lib.rs        |  1 +
2 files changed, 24 insertions(+)

Detailed changes

zed/src/chat_panel.rs 🔗

@@ -0,0 +1,23 @@
+use super::channel::{Channel, ChannelList};
+use gpui::{Entity, ModelHandle, View};
+
+pub struct ChatPanel {
+    channel_list: ModelHandle<ChannelList>,
+    active_channel: Option<ModelHandle<Channel>>,
+}
+
+pub enum Event {}
+
+impl Entity for ChatPanel {
+    type Event = Event;
+}
+
+impl View for ChatPanel {
+    fn ui_name() -> &'static str {
+        "ChatPanel"
+    }
+
+    fn render(&self, cx: &gpui::RenderContext<'_, Self>) -> gpui::ElementBox {
+        todo!()
+    }
+}

zed/src/lib.rs 🔗

@@ -1,5 +1,6 @@
 pub mod assets;
 pub mod channel;
+pub mod chat_panel;
 pub mod editor;
 pub mod file_finder;
 pub mod fs;