UNPKG

@adyen/kyc-components

Version:

`adyen-kyc-components` provides the required pieces to build an onboarding flow based on a legal entity. To onboard and verify users, you need to create a user interface (UI) to collect user data. To speed up building your integration, Adyen offers onboar

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