<div class="flex flex--spaceBetween flex--verticalCenter">
  {{dashboards/video-stats/video-search linkRoute=searchRoute ownerLogin=ownerLogin}}

  <div class="flex__item">
    {{#common/tab-container}}
      {{#if isVideoHeader}}
        {{#common/tab-item}}
          {{#link-to overviewRoute (normalize-video-id video.id)}}{{t 'general.common.overview'}}{{/link-to}}
        {{/common/tab-item}}
        {{#common/tab-item}}
          {{#link-to detailsRoute (normalize-video-id video.id)}}{{t 'general.common.details'}}{{/link-to}}
        {{/common/tab-item}}
      {{else}}
        {{#common/tab-item}}
          {{#link-to overviewRoute}}{{t 'general.common.overview'}}{{/link-to}}
        {{/common/tab-item}}
        {{#common/tab-item}}
          {{#link-to detailsRoute}}{{t 'general.common.details'}}{{/link-to}}
        {{/common/tab-item}}
      {{/if}}
    {{/common/tab-container}}
  </div>
</div>

{{#if isVideoHeader}}
  {{#dashboards/video-stats/video-header video=video}}
    {{#link-to videoFallbackRoute classname='flex__item'}}{{svg-icon path='svg/close'}}{{/link-to}}
  {{/dashboards/video-stats/video-header}}
{{/if}}
