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

<Hds::Breadcrumb data-test-breadcrumbs ...attributes>
  {{#each @breadcrumbs as |breadcrumb|}}
    <Hds::Breadcrumb::Item
      data-test-breadcrumb={{breadcrumb.label}}
      @text={{breadcrumb.label}}
      @icon={{breadcrumb.icon}}
      @route={{breadcrumb.route}}
      @model={{breadcrumb.model}}
      @models={{breadcrumb.models}}
      @query={{breadcrumb.query}}
      @isRouteExternal={{breadcrumb.linkExternal}}
      {{! in case the 'current' param is absent, only generate a link for crumbs with a route}}
      @current={{or breadcrumb.current (not breadcrumb.route)}}
    />
  {{/each}}
</Hds::Breadcrumb>