"use client";
import { jsx } from "react/jsx-runtime";
import { useMemo } from "react";
import { MakeswiftComponentType } from "../../../components/builtin/constants";
import { MakeswiftComponent } from "./MakeswiftComponent";
import { SlotProvider } from "./SlotProvider";
const Slot = ({ label, snapshot, fallback }) => {
  const contextValue = useMemo(() => ({ fallback }), [fallback]);
  return /* @__PURE__ */ jsx(SlotProvider, { value: contextValue, children: /* @__PURE__ */ jsx(MakeswiftComponent, { snapshot, label, type: MakeswiftComponentType.Slot }) });
};
export {
  Slot
};
//# sourceMappingURL=Slot.js.map