@helpwave/hightide
Version:
helpwave's component and theming library
22 lines (19 loc) • 857 B
TypeScript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { PropsWithChildren } from 'react';
import { PropsForTranslation } from '../../localization/useTranslation.js';
import { Language } from '../../localization/util.js';
import { ModalProps } from '../layout-and-navigation/Overlay.js';
import '../../localization/defaults/form.js';
type LanguageModalTranslation = {
language: string;
chooseLanguage: string;
done: string;
} & Record<Language, string>;
type LanguageModalProps = ModalProps;
/**
* A Modal for selecting the Language
*
* The State of open needs to be managed by the parent
*/
declare const LanguageModal: ({ overwriteTranslation, headerProps, onClose, ...modalProps }: PropsForTranslation<LanguageModalTranslation, PropsWithChildren<LanguageModalProps>>) => react_jsx_runtime.JSX.Element;
export { LanguageModal };