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

26 lines (25 loc) 1.09 kB
import type { ComponentChild } from 'preact'; import type { BaseInnerFormProps } from '../../core/hooks/useForm/types'; import type { CompanyTypesValue } from '../../core/models/api/company-types-value'; import type { DocumentType } from '../../core/models/api/document'; import type { CountryCode } from '../../core/models/country-code'; import type { FileSchema } from '../../core/models/file'; import type { TranslationKey } from '../../language/types'; export type DocumentUploadSchema = Record<string, FileSchema[] | undefined>; export interface DocumentUploadProps extends BaseInnerFormProps<DocumentUploadSchema> { documentField?: string; documentType?: DocumentType; guidanceContent?: ComponentChild; guidanceHeader?: ComponentChild; documentTypeSelect?: { selectedType: string; setSelectedType: (value: string) => void; options: ReadonlyArray<{ id: string; name: TranslationKey; }>; }; requiredFields?: (keyof DocumentUploadSchema)[]; companyType?: CompanyTypesValue; country?: CountryCode; }