package layout
import "html/template"
// NavIcons are the sidebar icons NavItem.Icon can name: simple 24x24
// stroke icons drawn for this module, colored by currentColor. A
// consumer may add its own (an with the same attributes) at
// program start, before the first page is rendered; the map is not
// safe for writes while pages render.
var NavIcons = map[string]template.HTML{
"dashboard": icon(` `),
"home": icon(` `),
"list": icon(` `),
"settings": icon(` `),
"server": icon(` `),
"database": icon(` `),
"box": icon(` `),
"user": icon(` `),
"users": icon(` `),
"key": icon(` `),
"shield": icon(` `),
"activity": icon(` `),
"chart": icon(` `),
"terminal": icon(` `),
"globe": icon(` `),
"cloud": icon(` `),
"file": icon(` `),
"folder": icon(` `),
"bell": icon(` `),
"compass": icon(` `),
"search": icon(` `),
"lock": icon(` `),
"network": icon(` `),
"download": icon(` `),
"info": icon(` `),
}
func icon(body string) template.HTML {
return template.HTML(`` + body + ` `)
}
func navIcon(name string) template.HTML {
if name == "" {
return ""
}
return NavIcons[name]
}