class Playbook::PbAvatarActionButton::AvatarActionButton

def action_icons

def action_icons
  icon_hash = {
    add: "plus-circle",
    remove: "times-circle",
  }
  # if an 'action' prop is passed that isn't
  # in the icon_hash an empty string is returned
  # instead of a null value, which would break the page
  # double pipe ruby syntax below is essentially a reduced if-else statement
  # if icon_hash[action.to_sym] returns a falsey value, return "" instead
  icon_hash[action.to_sym] ||= ""
end

def classname

def classname
  generate_classname("pb_avatar_action_button_kit", action, size, placement)
end