UNPKG

@adyen/kyc-components

Version:

This guide assumes that you have already an account with Adyen. A legalEntity needs to be created, and you need to have a `legalEntityId` to instatiate a Component.

16 lines (15 loc) 915 B
import type { TagVariant } from '../components/ui/atoms/Tag/Tag'; import type { LegalEntityAssociationType } from '../core/models/api/legal-entity-association'; import { type UnincorporatedPartnershipMemberType } from '../core/models/api/unincorporated-partnership'; import type { NsTranslationKey } from '../../types'; import { type TrustMemberGuidanceLabel } from '../components/Trust/utils/trustMemberGuidance'; export type Role = `${LegalEntityAssociationType | TrustMemberGuidanceLabel | UnincorporatedPartnershipMemberType}`; type RoleMetadata<R extends Role> = Record<R, { name: NsTranslationKey<'common'>; variant?: TagVariant; description?: NsTranslationKey<'common'>; }>; export declare const roleMetadata: Partial<RoleMetadata<Role>>; export declare const getRoleTagVariant: (role: Role) => TagVariant; export declare const getRoleName: (role: Role) => NsTranslationKey<"common">; export {};