UNPKG

@rocket.chat/onboarding-ui

Version:

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

15 lines 1.3 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const layout_1 = require("@rocket.chat/layout"); const react_i18next_1 = require("react-i18next"); const NewAccountForm_1 = __importDefault(require("../../forms/NewAccountForm")); const CreateNewAccountPage = ({ onLogin, ...props }) => { const { t } = (0, react_i18next_1.useTranslation)(); return ((0, jsx_runtime_1.jsxs)(layout_1.VerticalWizardLayout, { children: [(0, jsx_runtime_1.jsx)(layout_1.VerticalWizardLayoutTitle, { children: t('page.newAccountForm.title') }), (0, jsx_runtime_1.jsx)(layout_1.VerticalWizardLayoutForm, { children: (0, jsx_runtime_1.jsx)(NewAccountForm_1.default, { ...props }) }), (0, jsx_runtime_1.jsx)(layout_1.VerticalWizardLayoutFooter, { children: (0, jsx_runtime_1.jsxs)(react_i18next_1.Trans, { i18nKey: 'component.createNewAccountPage', children: ["Already registered?", (0, jsx_runtime_1.jsx)(layout_1.ActionLink, { fontScale: 'h4', onClick: onLogin, children: "Go to login" })] }) })] })); }; exports.default = CreateNewAccountPage; //# sourceMappingURL=CreateNewAccountPage.js.map