<SecretListHeader
  @model={{this.model.engine}}
  @backendCrumb={{hash
    label=this.model.engine.id
    text=this.model.engine.id
    path="vault.cluster.secrets.backend.list-root"
    model=this.model.engine.id
  }}
  @isEngine={{true}}
/>
<Toolbar>
  <ToolbarActions>
    {{#unless this.model.hasConfig}}
      <ToolbarLink @route="configuration.create">
        Configure PKI
      </ToolbarLink>
    {{/unless}}
  </ToolbarActions>
</Toolbar>

{{#if this.model.hasConfig}}
  <Page::PkiOverview @issuers={{this.model.issuers}} @roles={{this.model.roles}} @engine={{this.model.engine}} />
{{else}}
  <EmptyState @title="PKI not configured" @message={{this.notConfiguredMessage}}>
    <LinkTo @route="configuration.create">
      Configure PKI
    </LinkTo>
  </EmptyState>
{{/if}}