{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
~}}

<Hds::Breadcrumb>
  <Hds::Breadcrumb::Item @text="Secrets" @route="secrets" @isRouteExternal={{true}} data-test-breadcrumb="Secrets" />
  {{#if this.shouldShowPath}}
    <Hds::Breadcrumb::Item
      @text={{this.secretMountPath.currentPath}}
      @route="scopes.index"
      data-test-breadcrumb={{this.secretMountPath.currentPath}}
    />
  {{/if}}
  {{#if @scope}}
    <Hds::Breadcrumb::Item @text={{@scope}} @route="scope.roles" @model={{@scope}} data-test-breadcrumb={{@scope}} />
  {{/if}}
  {{#if @role}}
    <Hds::Breadcrumb::Item
      @text={{@role}}
      @route="credentials.index"
      @models={{array @scope @role}}
      data-test-breadcrumb={{@role}}
    />
  {{/if}}
  {{#if @currentRoute}}
    <Hds::Breadcrumb::Item @text={{@currentRoute}} @current={{true}} data-test-breadcrumb={{@currentRoute}} />
  {{/if}}
</Hds::Breadcrumb>