class Playbook::PbFilter::Filter

def classname

def classname
  generate_classname("pb_filter_kit").rstrip
end

def result_text

def result_text
  case results
  when 1
    "#{results} Result"
  when nil
    nil
  else
    "#{results} Results"
  end
end

def sort_icon(direction)

def sort_icon(direction)
  case direction
  when "asc"
    "sort-amount-up"
  when "desc"
    "sort-amount-down"
  else
    ""
  end
end

def wrapper(&block)

def wrapper(&block)
  if background
    pb_rails("card", props: { padding: "none" }, &block)
  else
    capture(&block)
  end
end