class Avo::EmptyStateComponent

def initialize(message: nil, view_type: :table, add_background: false, by_association: false)

def initialize(message: nil, view_type: :table, add_background: false, by_association: false)
  @message = message
  @view_type = view_type
  @add_background = add_background
  @by_association = by_association
end

def locale_message

def locale_message
  helpers.t by_association ? "avo.no_related_item_found" : "avo.no_item_found"
end

def text

def text
  message || locale_message
end

def view_type_svg

def view_type_svg
  "#{view_type}-empty-state"
end