UNPKG

@arteneo/forge

Version:
19 lines (18 loc) 1.1 kB
import React from "react"; import { DialogProps as MuiDialogProps } from "@mui/material"; import { ButtonProps } from "../../components/Common/Button"; import Optional from "../../definitions/Optional"; import TranslateVariablesInterface from "../../definitions/TranslateVariablesInterface"; import { ErrorInterface } from "../../contexts/Error"; interface RequestExecutionErrorDialogProps { onClose?: () => void; buttonBackProps?: ButtonProps; title?: (errors: ErrorInterface[], message?: string) => string; titleVariables?: (errors: ErrorInterface[], message?: string) => TranslateVariablesInterface; disableTranslateTitle?: boolean; renderContent?: (errors: ErrorInterface[], message?: string) => React.ReactNode; dialogProps?: Optional<MuiDialogProps, "open">; } declare const RequestExecutionErrorDialog: ({ onClose, buttonBackProps, title, titleVariables, disableTranslateTitle, renderContent, dialogProps, }: RequestExecutionErrorDialogProps) => React.JSX.Element | null; export default RequestExecutionErrorDialog; export { RequestExecutionErrorDialogProps };