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

<InfoTableRow @label="Name" @value={{@model.name}} data-test-alias-name={{true}} />
<InfoTableRow @label="ID" @value={{@model.id}} @addCopyButton={{true}} />
<InfoTableRow @label={{if (eq @model.identityType "entity-alias") "Entity ID" "Group ID"}} @value={{this.model.canonicalId}}>
  <LinkTo
    @route="vault.cluster.access.identity.show"
    @models={{array (if (eq @model.identityType "entity-alias") "entities" "groups") @model.canonicalId "details"}}
  >
    {{@model.canonicalId}}
  </LinkTo>
</InfoTableRow>
<InfoTableRow @label="Merged from Entity ID" @value={{@model.mergedFromCanonicalIds}} />
<InfoTableRow @label="Mount" @value={{@model.mountAccessor}}>
  <div>
    {{@model.mountPath}}
    <div>
      <Hds::Badge @text={{@model.mountType}} class="has-right-margin-8" />
      <code class="has-text-grey is-size-8">{{@model.mountAccessor}}</code>
    </div>
  </div>
</InfoTableRow>
<InfoTableRow @label="Created" @value={{@model.creationTime}}>
  <time datetime={{@model.creationTime}} title={{@model.creationTime}}>
    {{date-format @model.creationTime "MMM dd, yyyy h:mm a"}}
  </time>
</InfoTableRow>
<InfoTableRow @label="Last Updated" @value={{@model.lastUpdateTime}}>
  <time datetime={{@model.lastUpdateTime}} title={{@model.lastUpdateTime}}>
    {{date-format @model.lastUpdateTime "MMM dd, yyyy h:mm a"}}
  </time>
</InfoTableRow>