UNPKG

alinea

Version:
20 lines (18 loc) 448 B
import "../../chunks/chunk-NZLE2WMY.js"; // src/dashboard/hook/UseEntryEditor.tsx import { createContext, useContext } from "react"; import { jsx } from "react/jsx-runtime"; var ctx = createContext(void 0); function useEntryEditor() { return useContext(ctx); } function EntryEditorProvider({ children, editor }) { return /* @__PURE__ */ jsx(ctx.Provider, { value: editor, children }); } export { EntryEditorProvider, useEntryEditor };