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

<Hds::SideNav::Portal @ariaLabel="Client Count Navigation Links" data-test-sidebar-nav-panel="Client Count" as |Nav|>
  <Nav.BackLink
    @route="vault.cluster"
    @current-when={{false}}
    @icon="arrow-left"
    @text="Back to main navigation"
    data-test-sidebar-nav-link="Back to main navigation"
  />

  <Nav.Title data-test-sidebar-nav-heading="Client Count">Client Count</Nav.Title>

  <Nav.Link
    @route="vault.cluster.clients.counts.overview"
    @current-when="vault.cluster.clients.counts"
    @text="Client Usage"
    data-test-sidebar-nav-link="Client Usage"
  />
  {{#if @canReadConfig}}
    <Nav.Link
      @route="vault.cluster.clients.config"
      @text="Configuration"
      @current-when="vault.cluster.clients.config vault.cluster.clients.edit"
      data-test-sidebar-nav-link="Configuration"
    />
  {{/if}}
</Hds::SideNav::Portal>