refactor(web): remove typescript
This commit is contained in:
10
packages/web/src/contexts/Editor.jsx
Normal file
10
packages/web/src/contexts/Editor.jsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import * as React from 'react';
|
||||
export const EditorContext = React.createContext({
|
||||
readOnly: false,
|
||||
});
|
||||
export const EditorProvider = (props) => {
|
||||
const { children, value } = props;
|
||||
return (
|
||||
<EditorContext.Provider value={value}>{children}</EditorContext.Provider>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user