1
0
postdoc/app/components/email_list_entry_component.rb
2020-12-06 21:05:11 +01:00

12 lines
221 B
Ruby

class EmailListEntryComponent < ViewComponent::Base
attr_reader :email
def initialize(email:)
@email = email
end
def email_modifier_class
return 'email--read' if email.read?
'email--unread'
end
end