import * as React from 'react'; interface IEditorContext { readOnly: boolean; } export const EditorContext = React.createContext({ readOnly: false, }); type EditorProviderProps = { children: React.ReactNode; value: IEditorContext; }; export const EditorProvider = ( props: EditorProviderProps ): React.ReactElement => { const { children, value } = props; return ( {children} ); };