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

<Page::Header @title="Edit Key">
  <:breadcrumbs>
    <Page::Breadcrumbs
      @breadcrumbs={{array
        (hash label="Vault" route="vault.cluster.dashboard" icon="vault")
        (hash label="OIDC provider: Keys" route="vault.cluster.access.oidc.keys")
        (hash label="Details" route="vault.cluster.access.oidc.keys.key.details" model=this.model.name)
        (hash label="Edit key")
      }}
    />
  </:breadcrumbs>
</Page::Header>

<Oidc::KeyForm
  @model={{this.model}}
  @onCancel={{transition-to "vault.cluster.access.oidc.keys.key.details" this.model.name}}
  @onSave={{transition-to "vault.cluster.access.oidc.keys.key.details" this.model.name}}
/>