package core type ActionLink struct { Label string Href string Class string } type SegmentedLink struct { Label string Href string Class string } func actionLinkClass(class string) string { if class == "" { return "web2-button" } return class } func segmentedLinkClass(class string) string { if class == "" { return "web3-button" } return class } templ PageHeader(pill string, title string, subtitle string, actions []ActionLink) {
if pill != "" {
{ pill }
}

{ title }

if subtitle != "" {

{ subtitle }

}
if len(actions) > 0 {
for _, action := range actions { { action.Label } }
}
} templ SegmentedActions(actions []SegmentedLink) { if len(actions) > 0 {
for _, action := range actions { { action.Label } }
} } templ SectionHead(title string, badge string) {

{ title }

if badge != "" { { badge } }
}