@helpwave/hightide
Version:
helpwave's component and theming library
24 lines (21 loc) • 894 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren } from 'react';
import { PropsForTranslation } from '../../hooks/useTranslation.mjs';
import { ModalProps } from './Modal.mjs';
import '../../hooks/useLanguage.mjs';
type DiscardChangesDialogTranslation = {
save: string;
cancel: string;
dontSave: string;
title: string;
description: string;
};
type DiscardChangesDialogProps = ModalProps & {
isShowingDecline?: boolean;
requireAnswer?: boolean;
onCancel: () => void;
onSave: () => void;
onDontSave: () => void;
};
declare const DiscardChangesDialog: ({ overwriteTranslation, children, title, description, onCancel, onSave, onDontSave, ...modalProps }: PropsForTranslation<DiscardChangesDialogTranslation, PropsWithChildren<DiscardChangesDialogProps>>) => react_jsx_runtime.JSX.Element;
export { DiscardChangesDialog };