@croct/plug-react
Version:
React components and hooks to plug your React applications into Croct.
13 lines (12 loc) • 344 B
JavaScript
"use client";
import { jsx } from "react/jsx-runtime";
import { Fragment } from "react";
import { useContent } from "../../hooks/index.js";
const Slot = (props) => {
const { id, children, ...options } = props;
const data = useContent(id, options);
return /* @__PURE__ */ jsx(Fragment, { children: children(data) });
};
export {
Slot
};