usecrate::*;/// Props for the `my_modal` component.
////// Defines the strongly-typed interface for the modal dialog.
#[derive(Default)]pub(crate)structMyModalProps{/// The modal title text.
pub(crate)title:&'staticstr,
/// Optional close handler triggered by overlay or close button click.
pub(crate)onclick:Option<Rc<dyn Fn(Event)>>,
/// The child content rendered inside the modal body.
pub(crate)children: VirtualNode,
}