UNPKG

@blocklet/payment-react

Version:

Reusable react components for payment kit v2

24 lines (23 loc) 701 B
type LocalizedText = { zh: string; en: string; }; type SimpleSourceData = Record<string, string>; type StructuredSourceDataField = { key: string; label: string | LocalizedText; value: string; type?: 'text' | 'image' | 'url'; url?: string; group?: string; }; type SourceData = SimpleSourceData | StructuredSourceDataField[]; interface SourceDataViewerProps { data: SourceData; compact?: boolean; maxItems?: number; locale?: 'en' | 'zh'; showGroups?: boolean; } declare function SourceDataViewer({ data, compact, maxItems, locale: propLocale, showGroups, }: SourceDataViewerProps): import("react").JSX.Element | null; export default SourceDataViewer;