UNPKG

@helpwave/hightide

Version:

helpwave's component and theming library

22 lines (19 loc) 955 B
import * as react_jsx_runtime from 'react/jsx-runtime'; import { PropsWithChildren } from 'react'; import { PropsForTranslation } from '../../localization/useTranslation.mjs'; import { ModalProps } from '../layout-and-navigation/Overlay.mjs'; import { ThemeTypeTranslation } from '../../theming/useTheme.mjs'; import { FormTranslationType } from '../../localization/defaults/form.mjs'; import '../../localization/util.mjs'; type ThemeModalTranslationAddon = { chooseTheme: string; }; type ThemeModalTranslation = ThemeModalTranslationAddon & ThemeTypeTranslation & FormTranslationType; type ThemeModalProps = ModalProps; /** * A Modal for selecting the Theme * * The State of open needs to be managed by the parent */ declare const ThemeModal: ({ overwriteTranslation, headerProps, onClose, ...modalProps }: PropsForTranslation<ThemeModalTranslation, PropsWithChildren<ThemeModalProps>>) => react_jsx_runtime.JSX.Element; export { ThemeModal };