use crate::components::navigation::Navigation; use dioxus::prelude::*; #[component] pub(crate) fn BottomPanel() -> Element { let navigation_expanded = use_signal(|| false); rsx! { div { class: format!( "flex flex-col pointer-events-auto bg-gray-800 transition-[height] duration-[500ms] ease-[cubic-bezier(0.79,0.14,0.15,0.86)] overflow-y-scroll {}", if navigation_expanded() { "h-[130px]" } else { "h-[66px]" } ), Navigation { is_expanded: navigation_expanded, } } } }