{{- $icons := dict "caution" "dangerous" "important" "report" "note" "info" "tip" "lightbulb" "warning" "warning" }} {{- $borders := dict "caution" "border-red-light dark:border-red-dark" "important" "border-violet-light dark:border-violet-dark" "note" "border-blue-light dark:border-blue-dark" "tip" "border-green-light dark:border-green-dark" "warning" "border-amber-light dark:border-amber-dark" }} {{- $textColors := dict "caution" "text-red-light dark:text-red-dark" "important" "text-violet-light dark:text-violet-dark" "note" "text-blue-light dark:text-blue-dark" "tip" "text-green-light dark:text-green-dark" "warning" "text-amber-light dark:text-amber-dark" }} {{ if eq .Type "alert" }}

{{ $i := index $icons .AlertType }} {{ partialCached "icon.html" $i $i }} {{ i18n .AlertType }}

{{ .Text | safeHTML }}
{{ else }}
{{ .Text | safeHTML }}
{{ end }}