module Twitch
  module TeamHelper
    def thumbnail(alt:, src:)
      return haml_tag :span, 'No Image', class: 'label label-default' unless src

      haml_tag :a, href: src, target: '_blank' do
        haml_tag :img, alt: alt, class: 'img-thumbnail', src: src, width: '300rem'
      end
    end
  end
end
