use crate::DevToolsState;
#[derive(Clone, Debug, PartialEq)]
pub struct DevToolsTuiPanel {
title: String,
}
impl DevToolsTuiPanel {
pub fn new() -> Self {
Self {
title: "Animato DevTools".to_owned(),
}
}
pub fn render_summary(&self, state: &DevToolsState) -> String {
format!("{} open={}", self.title, state.is_open())
}
pub fn title(&self) -> &str {
&self.title
}
}
impl Default for DevToolsTuiPanel {
fn default() -> Self {
Self::new()
}
}