import { jsx as _jsx } from "react/jsx-runtime";
import * as React from 'react';
const CanvasContentContext = React.createContext(null);
export const CanvasContentProvider = ({ content, setContent, templateContent, setTemplateContent, children, }) => {
    const value = React.useMemo(() => ({ content, setContent, templateContent, setTemplateContent }), [content, setContent, templateContent, setTemplateContent]);
    return _jsx(CanvasContentContext.Provider, { value: value, children: children });
};
export const useCanvasContent = () => {
    const context = React.useContext(CanvasContentContext);
    if (!context) {
        throw new Error('useCanvasContent must be used within a CanvasContentProvider');
    }
    return context;
};
//# sourceMappingURL=CanvasContentContext.js.map
