<div class="card-carousel">
  <div class="card-carousel__container">
    <ul class="card-carousel__items slides">
      {{#each recsToShow as |content index|}}
        {{component itemComponent
          class='card-carousel__item'
          tagName='li'
          content=content
          showBoxart=showItemBoxart
          numRecsViewable=numRecsViewable
          index=index
          tt_medium=tt_medium
          tt_content=trackingContent
          position=index
          totalItems=items.length
        }}
      {{/each}}
    </ul>
  </div>

  <div class="card-carousel__nav">
    <div class="card-carousel__control card-carousel__control--left">
      <button data-test-selector="twitch-carousel-prev-button" class="card-carousel__button card-carousel__button--prev {{unless showArrows 'hidden'}} {{unless prevVisible 'card-carousel__button--disabled'}} flex-prev">
        <div class="card-carousel__arrow card-carousel__arrow--prev"></div>
      </button>
    </div>
    <div class="card-carousel__control card-carousel__control--right">
      <button data-test-selector="twitch-carousel-next-button" class="card-carousel__button card-carousel__button--next {{unless showArrows 'hidden'}} {{unless nextVisible 'card-carousel__button--disabled'}} flex-next">
        <div class="card-carousel__arrow card-carousel__arrow--next"></div>
      </button>
    </div>
  </div>
</div>
