rubyforgood/casa

View on GitHub
app/components/notification_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class NotificationComponent < ViewComponent::Base
  attr_reader :notification

  def initialize(notification:)
    @notification = notification
  end

  def muted_display
    "bg-light text-muted" if notification.read?
  end
end