@maple-billing/csv-import-react
Version:
Open-source CSV and XLS/XLSX file importer for React and JavaScript
25 lines (24 loc) • 823 B
TypeScript
import { Resource } from "i18next";
import { HTMLAttributes } from "react";
type ModalParams = {
isModal?: boolean;
modalIsOpen?: boolean;
modalOnCloseTriggered?: () => void;
modalCloseOnOutsideClick?: boolean;
};
export type CSVImporterProps = (HTMLAttributes<HTMLDialogElement> & HTMLAttributes<HTMLDivElement>) & {
template?: Record<string, unknown> | string;
darkMode?: boolean;
primaryColor?: string;
className?: string;
onComplete?: (data: any) => void;
waitOnComplete?: boolean;
customStyles?: Record<string, string> | string;
showDownloadTemplateButton?: boolean;
skipHeaderRowSelection?: boolean;
language?: string;
customTranslations?: Resource;
saveProperties?: boolean;
modalTitle?: string;
} & ModalParams;
export {};