import React, { createContext, useContext } from 'react' import PropTypes from 'prop-types' export const EditorContext = createContext() export function EditorProvider({ children }) { return ( {children} ) } EditorProvider.propTypes = { children: PropTypes.any } export function useEditorContext() { const { projectId } = useContext(EditorContext) return { projectId } }