Sha256: 03eb966c5086ec6ece4e6957d5ce5584909360ed07d096511c6c70387f5c23be
Contents?: true
Size: 442 Bytes
Versions: 8
Compression:
Stored size: 442 Bytes
Contents
module Spina module UserInterface class FlashMessageComponent < ApplicationComponent def initialize(type:, message:) @type = type @message = message end def confetti? @type == "confetti" && !Spina.config.party_pooper end def theme case @type when "alert", "error" "bg-red-400" else "bg-gray-400" end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems