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

{{#if (eq this.model.backendType "database")}}
  <GenerateCredentialsDatabase
    @backendPath={{this.model.backendPath}}
    @roleName={{this.model.roleName}}
    @roleType={{this.model.dbCred.roleType}}
    @model={{this.model.dbCred}}
  />
{{else if (eq this.model.backendType "totp")}}
  <GenerateCredentialsTotp
    @backRoute={{this.model.backRoute}}
    @backendPath={{this.model.backendPath}}
    @backendType={{this.model.backendType}}
    @keyName={{this.model.keyName}}
    @totpCodePeriod={{this.model.totpCodePeriod}}
  />
{{else}}
  <GenerateCredentials
    @backendPath={{this.model.backendPath}}
    @backendType={{this.model.backendType}}
    @roleName={{this.model.roleName}}
    @awsRoleType={{this.model.awsRoleType}}
  />
{{/if}}