mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Stub in a ChatPanel
This commit is contained in:
parent
b88b3e7657
commit
2507f9b4d4
2 changed files with 24 additions and 0 deletions
23
zed/src/chat_panel.rs
Normal file
23
zed/src/chat_panel.rs
Normal file
|
@ -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!()
|
||||
}
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
pub mod assets;
|
||||
pub mod channel;
|
||||
pub mod chat_panel;
|
||||
pub mod editor;
|
||||
pub mod file_finder;
|
||||
pub mod fs;
|
||||
|
|
Loading…
Reference in a new issue