@rocket.chat/onboarding-ui
Version:
Set of components and functions for the onboarding experience on Rocket.Chat
21 lines • 1.97 kB
JavaScript
;
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 colors_json_1 = __importDefault(require("@rocket.chat/fuselage-tokens/colors.json"));
const layout_1 = require("@rocket.chat/layout");
const react_1 = require("react");
const server_1 = require("react-dom/server");
const react_i18next_1 = require("react-i18next");
const PlanFeatureIcon_1 = __importDefault(require("../../common/PlanFeatureIcon"));
const Description = () => {
const isDarkMode = layout_1.DarkModeProvider.useDarkMode();
const color = isDarkMode ? colors_json_1.default.white : colors_json_1.default.n900;
const { t } = (0, react_i18next_1.useTranslation)();
const icon = (0, react_1.useMemo)(() => encodeURIComponent((0, server_1.renderToStaticMarkup)((0, jsx_runtime_1.jsx)(PlanFeatureIcon_1.default, { color: color }))), [color]);
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(layout_1.List, { color: color, spacing: 'x16', icon: icon, children: [(0, jsx_runtime_1.jsx)(layout_1.List.Item, { fontScale: 'h4', children: t('page.cloudDescription.availability') }), (0, jsx_runtime_1.jsx)(layout_1.List.Item, { fontScale: 'h4', children: t('page.cloudDescription.auditing') }), (0, jsx_runtime_1.jsx)(layout_1.List.Item, { fontScale: 'h4', children: t('page.cloudDescription.numberOfIntegrations') }), (0, jsx_runtime_1.jsx)(layout_1.List.Item, { fontScale: 'h4', children: t('page.cloudDescription.ldap') }), (0, jsx_runtime_1.jsx)(layout_1.List.Item, { fontScale: 'h4', children: t('page.cloudDescription.omnichannel') }), (0, jsx_runtime_1.jsx)(layout_1.List.Item, { fontScale: 'h4', children: t('page.cloudDescription.push') })] }) }));
};
exports.default = Description;
//# sourceMappingURL=Description.js.map