UNPKG

@rocket.chat/onboarding-ui

Version:

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

11 lines 983 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Margins, Button } from '@rocket.chat/fuselage'; import { BackgroundLayer, LayoutLogo } from '@rocket.chat/layout'; import { useTranslation } from 'react-i18next'; var InvalidLinkPage = function (_a) { var onRequestNewLink = _a.onRequestNewLink; var t = useTranslation().t; return (_jsx(BackgroundLayer, { children: _jsx(Box, { display: 'flex', flexDirection: 'column', alignItems: 'center', textAlign: 'center', width: '100%', maxWidth: 576, paddingBlock: 32, paddingInline: 16, children: _jsxs(Margins, { blockEnd: 32, children: [_jsx(LayoutLogo, {}), _jsx(Box, { fontScale: 'hero', children: t('page.invalidLink.title') }), _jsx(Box, { fontScale: 'p1', children: t('page.invalidLink.content') }), _jsx(Button, { onClick: onRequestNewLink, primary: true, children: t('page.invalidLink.button.text') })] }) }) })); }; export default InvalidLinkPage; //# sourceMappingURL=InvalidLinkPage.js.map