package templates import "dealroom/internal/model" import "dealroom/internal/rbac" templ Layout(profile *model.Profile, activePage string) { Dealspace AI
{ children... }
} func initials(name string) string { if len(name) == 0 { return "?" } result := "" prev := ' ' for i, c := range name { if i == 0 || prev == ' ' { result += string(c) } prev = c } if len(result) > 2 { result = result[:2] } return result } templ sidebarLink(href string, label string, active bool, icon templ.Component) { @icon { label } } templ svgDashboard() { } templ svgFolder() { } templ svgClipboard() { } templ svgChart() { } templ svgUsers() { } templ svgCog() { } templ svgTeam() { } templ svgCreditCard() { } templ svgShield() { }