package components // Modal renders a modal dialog. // // The itself must never be an htmx swap target: swapping its // innerHTML would replace the wrapper below (centering + close button) and // break the layout. Content is swapped into the inner element with id // "-content" instead. templ Modal(id string) {
{ children... }
}