<div class="js-share-box balloon-wrapper inline-block">
  <button class="qa-share-box__button share-box__button button button--hollow mg-l-1" {{action 'toggle'}}>
    {{label}}
  </button>

  <div class="js-balloon qa-share-box__balloon balloon balloon--sm balloon--up balloon--right {{if isMenuOpen 'show' 'hide'}}">

    <div class="js-share-icons cn-share-icons flex">
      {{channel-redesign/share-icon
        shareLink=twitterShareLink
        displayName="Twitter"
        className="twitter"
        trackShare=(action "trackShare")
      }}
      {{channel-redesign/share-icon
        shareLink=facebookShareLink
        displayName="Facebook"
        className="fb"
        trackShare=(action "trackShare")
      }}
      {{channel-redesign/share-icon
        shareLink=vkShareLink
        displayName="VK"
        className="vk"
        trackShare=(action "trackShare")
      }}
      {{channel-redesign/share-icon
        shareLink=redditShareLink
        displayName="Reddit"
        className="reddit"
        trackShare=(action "trackShare")
      }}
      {{channel-redesign/copy-icon
        clipboardText=contentUrl
        selectCopyLink=(action "selectCopyLink")
        trackShare=(action "trackShare")
      }}
    </div>

    <div class="cn-field">
      <label>{{i18n 'Channel Link'}}</label>
      {{copiable-text
        value=contentUrl
        class="text js-copy-link"
        onClick=(action 'trackShare' 'option_link')
      }}
    </div>
    <div class="cn-field">
      <label>{{i18n 'Embed Code'}}</label>
      {{copiable-text
        value=embedPlayerCode
        class="text invisible"
        onClick=(action 'trackShare' 'option_embed')
      }}
    </div>
    {{#if embedChatCode}}
      <div class="cn-field">
        <label>{{i18n 'Embed Chat'}}</label>
        {{copiable-text
          value=embedChatCode
          class="text invisible"
          onClick=(action 'trackShare' 'option_chat')
        }}
      </div>
    {{/if}}

  </div>
</div>

<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" style="width:0;height:0;visibility:hidden;display:block;">
  {{partial 'svg/icon-fb'}}
  {{partial 'svg/icon-reddit'}}
  {{partial 'svg/icon-twitter'}}
  {{partial 'svg/icon-vk'}}
  {{partial 'svg/icon-copy'}}
</svg>
