<div class="pinned-cheer__top-bar pinned-cheer--expandable" {{action 'toggleExpandMessage' preventDefault=false}}>
  {{svg-icon path='svg/bits/trophy' class='inline pinned-cheers__title-icon'}}

  {{bits/pinned-cheers/top-cheer-line
    msgObject=cheerMessage
    currentUserNick=currentUserNick
    currentUserDisplayname=currentUserDisplayname
    showModOverlay=showModOverlay
    class='inline'
    labelWrapper=(bits-string 'pinned_cheer_top_cheer_label')}}
  {{bits/chat-token amount=cheerMessage.amount prefix=aggregateMessagePrefix}}
</div>
<div class="pinned-cheer__expando-arrow {{unless expandMessage 'pinned-cheer__arrow--toggled'}}" {{action 'toggleExpandMessage' preventDefault=false}}>
  <div class="pinned-cheer__arrow arrow--t"></div>
</div>
{{#liquid-if expandMessage}}
  <hr class="pinned-cheer__top-bar--delimiter">
  <div class="pinned-cheers__message js-bits-pinned-cheers-recent-cheer {{if expandMessage 'expandMessage'}}">
    {{#if showDismissButton}}
      <button class="pinned-cheer__trash-can pinned-cheers__dismiss balloon-wrapper" {{action 'dismissPinnedCheer'}}>
        {{svg-icon path='svg/trash'}}
        <div class="balloon balloon--tooltip balloon--up">{{bits-string 'pinned_cheer_reset_top_cheer'}}</div>
      </button>
    {{/if}}
    <div class="pinned-cheers__message-wrapper pinned-cheers--padding">
      {{!-- this hack box is needed because emotes in pinned cheers are cut-off if we use overflow: scroll/hidden --}}
      {{chat/message-line
        tagName='div'
        msgObject=cheerMessage
        roomTrackingData=roomTrackingData
        currentUserNick=currentUserNick
        currentUserDisplayname=currentUserDisplayname
        isChannelLinksDisabled=isChannelLinksDisabled
        isViewerModeratorOrHigher=isViewerModeratorOrHigher
        isTwitchPrivilegedUser=isTwitchPrivilegedUser
        isDarkMode=isDarkMode
        showModOverlay=showModOverlay
        banUser=banUser
        unbanUser=unbanUser
        clickSubscriber=clickSubscriber
        timeoutUser=timeoutUser
        showMessageFlags=showMessageFlags
        showModIcons=showModIcons
        showModerationActions=showModerationActions
        showTwitchBotActions=showTwitchBotActions}}
    </div>
  </div>
{{/liquid-if}}
