@helpwave/hightide
Version:
helpwave's component and theming library
21 lines (18 loc) • 1.03 kB
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren } from 'react';
import { PropsForTranslation } from '../../localization/useTranslation.mjs';
import { ConfirmModalProps } from './ConfirmModal.mjs';
import { FormTranslationType } from '../../localization/defaults/form.mjs';
import '../../localization/util.mjs';
import '../user-action/Button.mjs';
import '../layout-and-navigation/Overlay.mjs';
type DiscardChangesModalTranslation = FormTranslationType;
type DiscardChangesModalProps = Omit<ConfirmModalProps, 'onDecline' | 'onConfirm' | 'buttonOverwrites'> & {
isShowingDecline?: boolean;
requireAnswer?: boolean;
onCancel: () => void;
onSave: () => void;
onDontSave: () => void;
};
declare const DiscardChangesModal: ({ overwriteTranslation, children, onCancel, onSave, onDontSave, headerProps, ...modalProps }: PropsForTranslation<DiscardChangesModalTranslation, PropsWithChildren<DiscardChangesModalProps>>) => react_jsx_runtime.JSX.Element;
export { DiscardChangesModal };