Alert messages, used to display errors and other important information.
error : List String -> Alert
success : List String -> Alert
render : MG.Viewport.Viewport -> Maybe Alert -> Element msg
Because we generally expect alerts to be displayed conditionally, this function takes a Maybe Alert
.
If the value is Nothing
, then no alert is rendered.