pub fn show_modal<R>(
ctx: &Context,
id: impl Hash + Debug,
title: impl Into<String>,
open: &mut bool,
add_contents: impl FnOnce(&mut Ui) -> R,
) -> Option<ModalResponse<R>>Expand description
Helper function to show a centered modal with standard styling