UNPKG

@rocket.chat/onboarding-ui

Version:

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

12 lines 1.22 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const fuselage_1 = require("@rocket.chat/fuselage"); const layout_1 = require("@rocket.chat/layout"); const react_i18next_1 = require("react-i18next"); const InvalidLinkPage = ({ onRequestNewLink, }) => { const { t } = (0, react_i18next_1.useTranslation)(); return ((0, jsx_runtime_1.jsx)(layout_1.BackgroundLayer, { children: (0, jsx_runtime_1.jsx)(fuselage_1.Box, { display: 'flex', flexDirection: 'column', alignItems: 'center', textAlign: 'center', width: '100%', maxWidth: 576, paddingBlock: 32, paddingInline: 16, children: (0, jsx_runtime_1.jsxs)(fuselage_1.Margins, { blockEnd: 32, children: [(0, jsx_runtime_1.jsx)(layout_1.LayoutLogo, {}), (0, jsx_runtime_1.jsx)(fuselage_1.Box, { fontScale: 'hero', children: t('page.invalidLink.title') }), (0, jsx_runtime_1.jsx)(fuselage_1.Box, { fontScale: 'p1', children: t('page.invalidLink.content') }), (0, jsx_runtime_1.jsx)(fuselage_1.Button, { onClick: onRequestNewLink, primary: true, children: t('page.invalidLink.button.text') })] }) }) })); }; exports.default = InvalidLinkPage; //# sourceMappingURL=InvalidLinkPage.js.map