@kadconsulting/dry
Version:
KAD Reusable Component Library
11 lines • 723 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { forwardRef } from 'react';
import Button from '../Button/Button';
import classnames from 'classnames';
// import * as Utils from "./ConfirmationDialog.utils.js";
import './ConfirmationDialog.scss';
const ConfirmationDialog = forwardRef(({ id, className, message, onConfirm, onCancel }, ref) => {
return (_jsxs("dialog", { id: id, open: true, className: classnames(className, 'dry-confirmation-dialog'), children: [_jsx("p", { children: message }), _jsx(Button, { text: 'Confirm', onClick: onConfirm }), _jsx(Button, { text: 'Cancel', onClick: onCancel })] }));
});
export default ConfirmationDialog;
//# sourceMappingURL=ConfirmationDialog.js.map