{"version":3,"file":"GraphActions.js","names":[],"sources":["jsx/react-flow/GraphActions.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nconst GraphActionsContext = createContext(null);\nfunction GraphActionsProvider({\n  value,\n  children\n}) {\n  return /* @__PURE__ */ jsx(GraphActionsContext.Provider, { value, children });\n}\nfunction useGraphActions() {\n  const value = useContext(GraphActionsContext);\n  if (!value) {\n    throw new Error(\n      \"useGraphActions must be called inside <NodeGraph> \\u2014 pass the toolbar as its children.\"\n    );\n  }\n  return value;\n}\nexport {\n  GraphActionsProvider,\n  useGraphActions\n};\n//# sourceMappingURL=GraphActions.js.map\n"],"mappings":";;;;AAEA,MAAM,sBAAsB,cAAc,IAAI;AAC9C,SAAS,qBAAqB,EAC5B,OACA,YACC;CACD,OAAuB,oBAAI,oBAAoB,UAAU;EAAE;EAAO;CAAS,CAAC;AAC9E;AACA,SAAS,kBAAkB;CACzB,MAAM,QAAQ,WAAW,mBAAmB;CAC5C,IAAI,CAAC,OAAO;EACV,MAAM,IAAI,MACR,uFACF;CACF;CACA,OAAO;AACT"}