UNPKG

@arteneo/forge

Version:
15 lines (14 loc) 944 B
import React from "react"; import { AxiosError } from "axios"; import { ButtonMultiEndpointProps } from "../../components/Common/ButtonMultiEndpoint"; import { BatchResultInterface } from "../../contexts/DialogBatch"; import ResultInterface from "../../components/Table/definitions/ResultInterface"; import EndpointType from "../../definitions/EndpointType"; interface DialogBatchButtonMultiEndpointProps extends Omit<ButtonMultiEndpointProps, "endpoints"> { endpoint: (result: ResultInterface) => EndpointType; resultDenyKey?: string; onCatchProcessResponse?: (result: ResultInterface, response: AxiosError) => BatchResultInterface; } declare const DialogBatchButtonMultiEndpoint: ({ label, color, variant, endIcon, endpoint, resultDenyKey, onCatchProcessResponse, ...props }: DialogBatchButtonMultiEndpointProps) => React.JSX.Element; export default DialogBatchButtonMultiEndpoint; export { DialogBatchButtonMultiEndpointProps };