use super::*;
#[derive(Clone, CustomDebug, Default)]
pub struct EuvTreeNode {
pub label: &'static str,
pub value: &'static str,
pub children: Vec<EuvTreeNode>,
}
#[derive(Clone, CustomDebug, Default)]
pub struct EuvTreeProps {
pub nodes: Vec<EuvTreeNode>,
pub selected: Signal<String>,
#[debug(skip)]
pub on_select: Option<Rc<dyn Fn(&'static str)>>,
pub default_expanded: bool,
}
pub(super) struct TreeViewContext<'a> {
pub(super) selected: Signal<String>,
pub(super) selected_value: &'a str,
pub(super) roving_value: &'a str,
pub(super) expanded: Signal<Vec<String>>,
pub(super) expanded_values: &'a [String],
pub(super) on_select: Option<Rc<dyn Fn(&'static str)>>,
}