refactor: widget state

This commit is contained in:
2024-10-11 16:42:05 +01:00
parent 67d6381123
commit 9a8bb54e08
17 changed files with 447 additions and 153 deletions

View File

@ -4,8 +4,21 @@ mod stream_list;
mod avatar;
mod stream_player;
mod video_placeholder;
mod chat;
mod chat_message;
mod profile;
use egui::{Response, Ui};
use crate::route::RouteServices;
pub trait NostrWidget {
fn render(&mut self, ui: &mut Ui, services: &RouteServices<'_>) -> Response;
}
pub use self::avatar::Avatar;
pub use self::header::Header;
pub use self::stream_list::StreamList;
pub use self::video_placeholder::VideoPlaceholder;
pub use self::stream_player::StreamPlayer;
pub use self::profile::Profile;
pub use self::chat::Chat;