{{#if shouldRender}}
  {{#if isSubscribed}}
    {{#if showResub}}
      {{subscribe-button/resub
        subscribedToText=subscribedToText
        channel=channel
        attachment=attachment
        targetAttachment=targetAttachment
        offset=offset
        balloonClassNames=balloonClassNames
        toggleHasSubscribedMessage=(action 'toggleHasSubscribedMessage')
        trackSubscribeButtonAction=(action 'trackSubscribeButtonAction')
        hasMessage=hasMessage}}
    {{else}}
      {{subscribe-button/subscribed
        subscribedToText=subscribedToText
        hasMessage=hasMessage}}
    {{/if}}
  {{else}}
    {{#if showPrimeContent}}
      {{subscribe-button/dynamic
        subscribeToText=subscribeToText
        price=price
        channel=channel
        campaign=campaign
        attachment=attachment
        targetAttachment=targetAttachment
        offset=offset
        balloonClassNames=balloonClassNames
        toggleHasSubscribedMessage=(action 'toggleHasSubscribedMessage')
        trackSubscribeButtonAction=(action 'trackSubscribeButtonAction')
      }}
    {{else}}
      {{subscribe-button/standard
        subscribeToText=subscribeToText
        price=price
        channel=channel
        campaign=campaign
        trackSubscribeButtonAction=(action 'trackSubscribeButtonAction')
      }}
    {{/if}}
  {{/if}}
{{/if}}
