@rocket.chat/onboarding-ui
Version:
Set of components and functions for the onboarding experience on Rocket.Chat
10 lines • 991 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { HorizontalWizardLayout, HorizontalWizardLayoutAside, HorizontalWizardLayoutTitle, HorizontalWizardLayoutSubtitle, HorizontalWizardLayoutDescription, HorizontalWizardLayoutContent, } from '@rocket.chat/layout';
import { useTranslation } from 'react-i18next';
var FormPageLayoutOnboard = function (_a) {
var title = _a.title, subtitle = _a.subtitle, description = _a.description, children = _a.children;
var t = useTranslation().t;
return (_jsxs(HorizontalWizardLayout, { children: [_jsxs(HorizontalWizardLayoutAside, { children: [_jsx(HorizontalWizardLayoutTitle, { children: title || t('page.form.title') }), subtitle && (_jsx(HorizontalWizardLayoutSubtitle, { children: subtitle })), _jsx(HorizontalWizardLayoutDescription, { children: description })] }), _jsx(HorizontalWizardLayoutContent, { children: children })] }));
};
export default FormPageLayoutOnboard;
//# sourceMappingURL=FormPageLayout.js.map