UNPKG

@hhgtech/hhg-components

Version:
53 lines (50 loc) 2.29 kB
import { _ as __rest } from './tslib.es6-ea4dfe68.js'; import React__default from 'react'; import { H as HealthToolCardWrapper } from './index-f6bb4380.js'; import { B as BabyPoopForm } from './index-ead8c96d.js'; import '@mantine/core'; import '@hhgtech/icons/other'; import './index-5d405c0d.js'; import '@mantine/hooks'; import './index-ebe66e27.js'; import './constantsDomainLocales.js'; import './Locale-f270bd9d.js'; import './constantsIsProduction.js'; import './useScreenSize-981e5b51.js'; import '@emotion/styled'; import './utils-cb7242c7.js'; import '@mantine/carousel'; import './index-9f5659e8.js'; import './other-4ccb5568.js'; import './index-90813715.js'; import './miscTheme.js'; import './useMantineLocale-0c6bea99.js'; import '@mantine/notifications'; import './index-5e947517.js'; import 'date-fns/locale'; import './constantsSite.js'; import './constantsRiskScreener.js'; import 'dayjs'; import './index-c68a0fa7.js'; import 'classnames'; import './useUniqueId-4305c9aa.js'; import '@hhgtech/icons/core'; import '@mantine/dates'; import './index.styles-770020ac.js'; import './index-9d21b711.js'; import './translationsContext-3a9e3453.js'; import './index-c2190f6e.js'; import './miscDefaultClassWrapper.js'; const BabyPoopEmbed = (_a) => { var { babyPoopPage, formProps } = _a, props = __rest(_a, ["babyPoopPage", "formProps"]); const { reviewedBy, reviewedDate } = babyPoopPage || {}; return (React__default.createElement(HealthToolCardWrapper, Object.assign({}, props), React__default.createElement(HealthToolCardWrapper.Banner, { icon: React__default.createElement("img", { alt: "health-tool-icon", src: babyPoopPage === null || babyPoopPage === void 0 ? void 0 : babyPoopPage.featuredImage, loading: "lazy" }), heading: babyPoopPage.title, medicalReview: { link: reviewedBy === null || reviewedBy === void 0 ? void 0 : reviewedBy.profileUrl, reviewer: reviewedBy === null || reviewedBy === void 0 ? void 0 : reviewedBy.displayName, date: reviewedDate, } }), React__default.createElement(HealthToolCardWrapper.Body, null, React__default.createElement(BabyPoopForm, Object.assign({ babyPoopPage: babyPoopPage }, formProps))))); }; export { BabyPoopEmbed };