{{ $emoji := dict "caution" ":exclamation:" "warning" ":warning:" "important" ":information_source:" "tip" ":bulb:" }} {{- if eq .Type "alert" -}}

{{- transform.Emojify (index $emoji .AlertType) -}} {{ if .AlertTitle }} {{- .AlertTitle -}} {{ else }} {{- .AlertType | title -}} {{ end }}

{{- .Text -}}
{{- else -}}
{{- .Text -}}
{{- end -}} {{- /* chomp trailing newline */ -}}