import { jsx as e } from "@emotion/react/jsx-runtime";
import c, { createContext as m, useMemo as r } from "react";
import { MFHostRuntimeToolsProvider as s } from "../MFHostRuntimeToolsContext/MFHostRuntimeToolsContext.js";
const u = void 0, d = m(null);
function a(t) {
  const { children: i, value: o } = t, l = r(() => o ?? u, [o]), n = r(
    () => o ? { realtime: { producerTools: o } } : void 0,
    [o]
  );
  return /* @__PURE__ */ e(s, { value: n, children: /* @__PURE__ */ e(d.Provider, { value: l, children: i }) });
}
const T = c.memo(a);
export {
  d as MFRealtimeProducerToolsContext,
  a as MFRealtimeProducerToolsProvider,
  T as MemoizedMFRealtimeProducerToolsProvider
};
