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

<Hds::AppSideNav::Portal @ariaLabel="Secrets Navigation Links" data-test-sidebar-nav-panel="Secrets" as |Nav|>
  <Nav.BackLink
    @route={{if @isEngine "vault" "vault.cluster"}}
    @isRouteExternal={{@isEngine}}
    @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="Secrets">Secrets</Nav.Title>
  <Nav.Link
    @route={{if @isEngine "secrets" "vault.cluster.secrets"}}
    @isRouteExternal={{@isEngine}}
    @text="Secrets engines"
    data-test-sidebar-nav-link="Secrets engines"
  />
  {{#if (display-nav-item this.routeName.secretsSync)}}
    <Nav.Link
      @route={{if @isEngine "sync" "vault.cluster.sync"}}
      @isRouteExternal={{@isEngine}}
      @text="Secrets sync"
      @badge={{if this.flags.isHvdManaged "Plus" ""}}
      data-test-sidebar-nav-link="Secrets sync"
    />
  {{/if}}
</Hds::AppSideNav::Portal>