UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

20 lines (18 loc) 448 B
import "../../chunks/chunk-U5RRZUYZ.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 };