1use ui::prelude::*;
2use ui::{Panel, ProjectPanel};
3
4use crate::story::Story;
5
6#[derive(Element, Default)]
7pub struct ProjectPanelStory {}
8
9impl ProjectPanelStory {
10 fn render<V: 'static>(&mut self, _: &mut V, cx: &mut ViewContext<V>) -> impl IntoElement<V> {
11 Story::container(cx)
12 .child(Story::title_for::<_, ProjectPanel<V>>(cx))
13 .child(Story::label(cx, "Default"))
14 .child(Panel::new(
15 ScrollState::default(),
16 |_, _| vec![ProjectPanel::new(ScrollState::default()).into_any()],
17 Box::new(()),
18 ))
19 }
20}