UNPKG

@arteneo/forge

Version:
20 lines (19 loc) 1.38 kB
import React from "react"; import { AxiosResponse } from "axios"; import Optional from "../../definitions/Optional"; import { DialogProviderProps } from "../../contexts/Dialog"; import { BatchResultInterface, DialogBatchProviderProps } from "../../contexts/DialogBatch"; import { DialogTitleSpecificProps } from "../../components/Dialog/DialogTitle"; import { DialogBatchContentSpecificProps } from "../../components/Dialog/DialogBatchContent"; import { DialogBatchButtonSubmitProps } from "../../components/Dialog/DialogBatchButtonSubmit"; import { BindDialogBatchFormProps } from "../../components/Dialog/BindDialogBatchForm"; type DialogBatchFormFormProps = Optional<BindDialogBatchFormProps, "children">; type InternalDialogBatchFormProps = DialogTitleSpecificProps & DialogBatchContentSpecificProps & Omit<DialogBatchProviderProps, "children"> & Omit<DialogProviderProps, "children">; interface DialogBatchFormProps extends InternalDialogBatchFormProps { formProps: DialogBatchFormFormProps; processResponse?: (response: AxiosResponse) => BatchResultInterface[]; submitProps?: DialogBatchButtonSubmitProps; } declare const DialogBatchForm: ({ results, children, batchProgressProps, title, titleVariables, onClose, formProps, submitProps, ...props }: DialogBatchFormProps) => React.JSX.Element; export default DialogBatchForm; export { DialogBatchFormProps };