UNPKG

@shopify/shop-minis-react

Version:

React component library for Shopify Shop Minis with Tailwind CSS v4 support (source-only, requires TypeScript)

19 lines (18 loc) 576 B
import { jsx as p } from "react/jsx-runtime"; import { useContent as c } from "../../hooks/content/useContent.js"; import { ContentMonitor as m } from "./content-monitor.js"; function C({ publicId: o, externalId: r, children: e }) { const { content: i, loading: t } = c({ identifiers: [{ publicId: o, externalId: r }], skip: !o && !r }), n = i?.[0]; return t || !n ? e({ loading: t }) : /* @__PURE__ */ p(m, { publicId: n.publicId, children: e({ content: n, loading: t }) }); } export { C as ContentWrapper }; //# sourceMappingURL=content-wrapper.js.map