module Twitch
  module TeamMemberHelper
    def boolean_label(bool)
      text = bool ? 'YES' : 'NO'
      color = bool ? 'label-success' : 'label-default'

      haml_tag :span, text, class: "label #{color}"
    end
  end
end
