'use client'; import type { EditorStateManager } from '@intlayer/editor'; import { createContext, type FC, type PropsWithChildren, useContext, } from 'react'; const EditorStateContext = createContext(null); export const EditorStateProvider: FC< PropsWithChildren<{ manager: EditorStateManager }> > = ({ children, manager }) => ( {children} ); export const useEditorStateManager = (): EditorStateManager | null => useContext(EditorStateContext);