package components
import "fmt"
type ModalProps struct {
ID string
Title string
Open bool
Content templ.Component
MaxWidth string // Optional: custom max-width class (defaults to max-w-xl)
}
templ Modal(props ModalProps) {
{{
maxWidth := props.MaxWidth
if maxWidth == "" {
maxWidth = "max-w-xl"
}
}}
{ props.Title }
if props.Content != nil {
@props.Content
}
}
templ ModalContainer() {
}
type ConfirmModalProps struct {
Title string
Message string
ConfirmText string
CancelText string
ConfirmAction string
ConfirmClass string
IssueID string
}
templ ConfirmModal(props ConfirmModalProps) {
{ props.Title }
}