use crate::card::*; use crate::components::OptionComp; use crate::icon::*; use crate::teleport::*; use crate::utils::mount_style::mount_style; use leptos::*; #[slot] pub struct ModalFooter { children: ChildrenFn, } #[component] pub fn Modal( #[prop(into)] show: RwSignal, #[prop(optional, into)] title: MaybeSignal<&'static str>, children: Children, #[prop(optional)] modal_footer: Option, ) -> impl IntoView { mount_style("modal", include_str!("./modal.css")); view! {
{ title.get() } { children() } { (footer.children)() }
} }