package templates // LibrarySwitcher renders the sticky subbar: title + library select on // the left (title hidden below `sm` — phones need the row width for the // select + actions + the dashboard's stats widget), optional action // buttons on the right. `center` is an // optional slot between them (nil = unused) — the dashboard passes its // "This Week" stats widget here so it participates in the bar's // justify-between layout as the middle group. templ LibrarySwitcher(libData []LibraryData, currentLibraryID string, title string, center templ.Component, actions ...templ.Component) {
if title != "" { } else { }
if center != nil { @center } if len(actions) > 0 {
for _, action := range actions { @action }
}
} templ DashboardActions() { }