@arteneo/forge
Version:
20 lines (19 loc) • 1.44 kB
TypeScript
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 { BindDialogBatchFormMultiProps } from "../../components/Dialog/BindDialogBatchFormMulti";
type DialogBatchFormMultiFormProps = Optional<BindDialogBatchFormMultiProps, "children">;
type InternalDialogBatchFormMultiProps = DialogTitleSpecificProps & DialogBatchContentSpecificProps & Omit<DialogBatchProviderProps, "children"> & Omit<DialogProviderProps, "children">;
interface DialogBatchFormMultiProps extends InternalDialogBatchFormMultiProps {
formProps: DialogBatchFormMultiFormProps;
processResponse?: (response: AxiosResponse) => BatchResultInterface[];
submitProps?: DialogBatchButtonSubmitProps;
}
declare const DialogBatchFormMulti: ({ results, children, batchProgressProps, title, titleVariables, onClose, formProps, submitProps, ...props }: DialogBatchFormMultiProps) => React.JSX.Element;
export default DialogBatchFormMulti;
export { DialogBatchFormMultiProps };