{{!
  Copyright (c) HashiCorp, Inc.
  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>
      <Icon @name={{@model.icon}} @size="24" class="has-text-grey-light" />
      {{@model.id}}
    </h1>
  </p.levelLeft>
</PageHeader>

<div class="tabs-container box is-bottomless is-marginless is-paddingless">
  <nav class="tabs" aria-label="kubernetes tabs">
    <ul>
      <LinkTo @route="overview" data-test-tab="overview">Overview</LinkTo>
      <LinkTo @route="roles" data-test-tab="roles">Roles</LinkTo>
      <LinkTo @route="configuration" data-test-tab="config">Configuration</LinkTo>
    </ul>
  </nav>
</div>

<Toolbar>
  {{#if @filterRoles}}
    <ToolbarFilters>
      <NavigateInput
        @filter={{@rolesFilterValue}}
        @placeholder="Filter roles"
        @urls={{hash list="vault.cluster.secrets.backend.kubernetes.roles"}}
      />
    </ToolbarFilters>
  {{/if}}
  <ToolbarActions>
    {{yield}}
  </ToolbarActions>
</Toolbar>