react-components-design-system
Version:
React UI component for design system FIS ES PB5
25 lines (24 loc) • 842 B
TypeScript
import { ReactElement, ReactNode } from "react";
import { ModalProps as AntModalProps } from "antd";
import "./ModalConfirm.scss";
export interface ModalCustomProps extends AntModalProps {
children?: ReactNode;
/**Name of apply button*/
titleButtonApply?: string;
typeButtonApply?: "primary" | "danger";
/**Name of cancel button*/
titleButtonCancel?: string;
/**Cancel the form*/
handleCancel?: (event: any) => void;
/**Save the form*/
handleSave?: (event: any) => void;
/**Pass state of loading */
icon?: ReactNode;
title?: string;
content?: string | ReactElement;
showButtonCancel?: boolean;
showButtonApply?: boolean;
loadingButton?: boolean;
}
declare function ModalConfirm(props: ModalCustomProps): import("react/jsx-runtime").JSX.Element;
export default ModalConfirm;