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
