UNPKG

@rocket.chat/onboarding-ui

Version:

Set of components and functions for the onboarding experience on Rocket.Chat

12 lines 1.12 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { HeroLayout, HeroLayoutTitle, HeroLayoutSubtitle, } from '@rocket.chat/layout'; import { useTranslation, Trans } from 'react-i18next'; import EmailCodeFallback from '../../common/EmailCodeFallback'; var defaultSubtitleComponent = (_jsxs(Trans, { i18nKey: 'page.checkYourEmail.subtitle', children: ["Your request has been sent successfully.", _jsx("br", {}), "Check your email inbox to launch your Enterprise trial."] })); var CheckYourEmailPage = function (_a) { var title = _a.title, children = _a.children, onResendEmailRequest = _a.onResendEmailRequest, onChangeEmailRequest = _a.onChangeEmailRequest; var t = useTranslation().t; return (_jsxs(HeroLayout, { children: [_jsx(HeroLayoutTitle, { children: title || t('page.checkYourEmail.title') }), _jsx(HeroLayoutSubtitle, { children: children || defaultSubtitleComponent }), _jsx(EmailCodeFallback, { onResendEmailRequest: onResendEmailRequest, onChangeEmailRequest: onChangeEmailRequest })] })); }; export default CheckYourEmailPage; //# sourceMappingURL=CheckYourEmailPage.js.map