UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

24 lines (21 loc) 891 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsWithChildren } from 'react'; import { PropsForTranslation } from '../../hooks/useTranslation.js'; import { ModalProps } from './Modal.js'; import '../../hooks/useLanguage.js'; 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 };