<HeaderScope />
<Toolbar>
  <ToolbarActions>
    {{#if this.model}}
      <DownloadButton
        class="toolbar-link"
        @filename={{concat this.model.ca.id "-ca"}}
        @data={{this.model.ca.caPem}}
        @extension="pem"
      >
        Download CA cert
        <Chevron @isButton={{true}} />
      </DownloadButton>
    {{/if}}
    <ToolbarLink @route="configure" data-test-kmip-link-configure>
      Configure
    </ToolbarLink>
  </ToolbarActions>
</Toolbar>
{{#if this.model}}
  <FieldGroupShow @model={{this.model}} />
  <InfoTableRow @label="CA PEM" @value={{this.model.ca.caPem}}>
    <MaskedInput @value={{this.model.ca.caPem}} @displayOnly={{true}} @allowCopy={{true}} />
  </InfoTableRow>
{{else}}
  <EmptyState
    @title="No configuration for this secrets engine"
    @message="We'll need to configure a few things before getting started."
  >
    <LinkTo @route="configure">
      Configure
    </LinkTo>
  </EmptyState>
{{/if}}