{{!
  Copyright IBM Corp. 2016, 2025
  SPDX-License-Identifier: BUSL-1.1
}}
<Hds::Card::Container
  @level="mid"
  @hasBorder={{true}}
  class="has-padding-m has-top-bottom-margin"
  data-test-card-container="secrets duration"
  ...attributes
>
  <Hds::Text::Display @size="300" @tag="h2" class="has-bottom-margin-s hds-foreground-strong">Secrets duration</Hds::Text::Display>

  <Hds::Layout::Flex @align="start" @gap="16" class="has-bottom-margin-m">
    <Hds::Layout::Flex @direction="column" @gap="4">
      <Hds::Text::Body @size="200" @tag="p">Time-to-live defines how long secrets issued by this engine remain valid before
        expiring.</Hds::Text::Body>
      <Hds::Link::Standalone
        @icon="external-link"
        @iconPosition="trailing"
        @text="TTL in Vault docs"
        @href="https://developer.hashicorp.com/vault/docs/troubleshoot/tune-lease-ttl"
      />
    </Hds::Layout::Flex>
  </Hds::Layout::Flex>

  <Hds::Layout::Flex @direction="column" @gap="24" @isInline="true" class="has-top-padding-s has-bottom-padding-s">
    <SecretEngine::TtlPickerV2 @model={{@model}} @initialUnit={{@defaultLeaseUnit}} @ttlKey="default_lease_ttl" />
    <SecretEngine::TtlPickerV2 @model={{@model}} @initialUnit={{@maxLeaseUnit}} @ttlKey="max_lease_ttl" />
  </Hds::Layout::Flex>
</Hds::Card::Container>