class Avo::PanelComponent

def after_initialize

def after_initialize
  @name = @args.dig(:name) || @args.dig(:title)
end

def classes

def classes
  class_names(@classes, "has-cover-photo": @cover_photo.present?, "has-profile-photo": @profile_photo.present?)
end

def data_attributes

def data_attributes
  @data.merge(component: @data[:component] || self.class.to_s.underscore, "panel-index": @index)
end