{{ define "notifications/fragments/preview" }} {{ $read := .ReadFilter }} {{ $cat := .CategoryFilter }}
{{ if and .CanFocus (not .FocusParams.Focusing) }} {{ template "focus/fragments/beginButton" . }} {{ else if not .FocusParams.Focusing }}
{{ range $k, $label := list "all" "work" "social" }} {{ $label }} {{ end }}
{{ end }}
{{ if .Notifications }}
{{ range .Notifications }} {{ template "notifications/fragments/item" . }} {{ end }}
{{ else }}
{{ if eq $read "unread" }}{{ i "inbox" "w-12 h-12" }}{{ else }}{{ i "bell-off" "w-12 h-12" }}{{ end }}

{{ if eq $read "unread" }}All caught up!{{ else }}No notifications{{ end }}

{{ end }} View all {{ i "arrow-right" "size-4" }} {{ end }}