% flash.each do |type, msg| %> <% next unless msg.present? color = case type.to_sym when :success # bg-green-50 text-green-800 text-green-500 text-green-400 ring-green-400 "green" when :warning # bg-yellow-50 text-yellow-800 text-yellow-500 text-yellow-400 ring-yellow-400 "yellow" when :alert, :danger, :error # bg-red-50 text-red-800 text-red-500 text-red-400 ring-red-400 "red" else # bg-blue-50 text-blue-800 text-blue-500 text-blue-400 ring-blue-400 "blue" end %>