.flash-container
  - if defined? flashes
    - flashes.each do |type, msg|
      .animate-show{"data-controller": "flash", "data-flash-auto-close-value": type == 'success'}
        .flash{type: "#{type}", class: "#{type}"}
          .msg= msg
          .actions
            %button.secondary{"data-action": "click->flash#close"}= t('.dismiss')
