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

<Hds::PageHeader class="has-top-padding-l has-bottom-padding-m" as |PH|>
  {{#if @breadcrumbs}}
    <PH.Breadcrumb>
      <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
    </PH.Breadcrumb>
  {{/if}}

  <PH.Title>
    {{@title}}
    {{#if this.version.isCommunity}}
      <Hds::Badge @text="Enterprise" @color="highlight" data-test-badge="enterprise" />
    {{/if}}
  </PH.Title>

  <PH.Subtitle>
    {{@subtitle}}
  </PH.Subtitle>

  {{#if @action}}
    <PH.Actions>
      <Hds::Button
        @text={{@action.text}}
        @icon={{@action.icon}}
        @iconPosition={{@action.iconPosition}}
        @color={{@action.color}}
        @route={{@action.route}}
        @models={{@action.models}}
      />
    </PH.Actions>
  {{/if}}
</Hds::PageHeader>