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

<PageHeader as |p|>
  <p.top>
    <Page::Breadcrumbs @breadcrumbs={{@breadcrumbs}} />
  </p.top>
  <p.levelLeft>
    <h1 class="title is-3">
      <Icon @name="certificate" @size="24" class="has-text-grey-light" />
      Configure Automatic Tidy
    </h1>
  </p.levelLeft>
</PageHeader>

<PkiTidyForm
  @tidy={{@model}}
  @tidyType="auto"
  @onSave={{transition-to "vault.cluster.secrets.backend.pki.tidy.auto"}}
  @onCancel={{transition-to (concat "vault.cluster.secrets.backend.pki.tidy" (if @model.enabled ".auto" ""))}}
/>