{{!
  Copyright IBM Corp. 2016, 2025
  SPDX-License-Identifier: BUSL-1.1
}}

<PageHeader as |p|>
  <p.top>
    <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
  </p.top>
  <p.levelLeft>
    <h1 class="title is-3" data-test-header-title>
      {{#if @mountName}}
        <Icon @name="key-values" @size="24" class="has-text-grey-light" />
        {{@mountName}}
        <Hds::Badge @text="version 2" />
      {{else if @secretPath}}
        {{@secretPath}}
        <Hds::Copy::Button @isIconOnly={{true}} @text="Copy your secret path" @textToCopy={{@secretPath}} />
      {{else}}
        {{@pageTitle}}
      {{/if}}
    </h1>
  </p.levelLeft>
</PageHeader>

{{#if (has-block "syncDetails")}}
  {{yield to="syncDetails"}}
{{/if}}

{{#if (has-block "tabLinks")}}
  <div class="tabs-container box is-bottomless is-marginless is-paddingless">
    <nav class="tabs" aria-label="kv tabs">
      <ul>
        {{yield to="tabLinks"}}
      </ul>
    </nav>
  </div>
{{/if}}

{{#if (or (has-block "toolbarFilters") (has-block "toolbarActions"))}}
  <Toolbar aria-label="menu items for managing {{or @mountName @secretPath @pageTitle}}">
    <ToolbarFilters aria-label="filters for secrets list">
      {{yield to="toolbarFilters"}}
    </ToolbarFilters>
    <ToolbarActions aria-label="actions for secrets">
      {{yield to="toolbarActions"}}
    </ToolbarActions>
  </Toolbar>
{{/if}}