use dioxus::prelude::*;
#[derive(Props, Clone, PartialEq)]
pub struct AppShellFooterProps {
#[props(default)]
pub height: Option<String>,
#[props(default = true)]
pub border: bool,
#[props(default)]
pub class: String,
pub children: Element,
}
#[component]
pub fn AppShellFooter(props: AppShellFooterProps) -> Element {
let height_val = props.height.unwrap_or_else(|| "40px".to_string());
let border_class = if props.border {
"sd-app-shell__footer--border"
} else {
""
};
rsx! {
footer {
role: "contentinfo",
class: "sd-app-shell__footer {border_class} {props.class}",
style: "height: {height_val}; min-height: {height_val};",
{props.children}
}
}
}