@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
15 lines (14 loc) • 702 B
TypeScript
import type { TagVariant } from '../components/ui/atoms/Tag/Tag';
import type { LegalEntityAssociationType } from '../core/models/api/legal-entity-association';
import { TrustMemberGuidanceLabel } from '../core/models/trust';
import type { TranslationKey } from '../language/types';
type Role = `${LegalEntityAssociationType | TrustMemberGuidanceLabel}`;
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 {};