import { __exports as t } from "./index-LexicalComposerContext.dev2.js";
import c from "react";
var l;
function m() {
  if (l) return t;
  l = 1;
  var r = c;
  const n = /* @__PURE__ */ r.createContext(null);
  function C(e, x) {
    let o = null;
    e != null && (o = e[1]);
    function a() {
      return x ?? (o != null ? o.getTheme() : null);
    }
    return {
      getTheme: a
    };
  }
  function i() {
    const e = r.useContext(n);
    if (e == null)
      throw Error("LexicalComposerContext.useLexicalComposerContext: cannot find a LexicalComposerContext");
    return e;
  }
  return t.LexicalComposerContext = n, t.createLexicalComposerContext = C, t.useLexicalComposerContext = i, t;
}
export {
  m as __require
};
