UNPKG

@talend/react-components

Version:
30 lines 961 B
import { Fragment } from 'react'; import { useTranslation } from 'react-i18next'; import Stepper from '../Stepper'; import I18N_DOMAIN_COMPONENTS from '../constants'; import theme from './DemoContentStep.module.scss'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; export default function DemoContentStep({ demoContentSteps }) { const { t } = useTranslation(I18N_DOMAIN_COMPONENTS); if (!demoContentSteps.length) { return null; } return /*#__PURE__*/_jsxs(Fragment, { children: [/*#__PURE__*/_jsx("p", { className: theme.info, children: t('DEMO_CONTENT_LOADING_MESSAGE', { defaultValue: "Loading may take a few minutes to complete.\nIsn't it time for tea or coffee?" }) }), /*#__PURE__*/_jsx(Stepper, { steps: demoContentSteps })] }); } DemoContentStep.propTypes = { demoContentSteps: Stepper.propTypes.steps.isRequired }; //# sourceMappingURL=DemoContentStep.component.js.map