package components import ( "tangled.org/oolong.social/oolong/internal/entities" "tangled.org/oolong.social/oolong/internal/lexicons" ) // ModalShellProps configures the shared dialog wrapper used by entity // create/edit modals. Body content is passed as templ children. type ModalShellProps struct { Type lexicons.RecordType ActionPath string RKey string // "" = create, non-empty = edit } func modalActionURL(path, rkey string) string { if rkey != "" { return "/api/" + path + "/" + rkey } return "/api/" + path } templ ModalShell(props ModalShellProps) { if d := entities.Get(props.Type); d != nil { } }