'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import React, { createContext, use } from 'react';
export const EditDepthContext = /*#__PURE__*/ createContext(0);
export const EditDepthProvider = ({ children })=>{
    const parentDepth = useEditDepth();
    const depth = parentDepth + 1;
    return /*#__PURE__*/ _jsxDEV(EditDepthContext, {
        value: depth,
        children: children
    }, void 0, false, {
        fileName: "src/providers/EditDepth/index.tsx",
        lineNumber: 10,
        columnNumber: 10
    }, this);
};
export const useEditDepth = ()=>use(EditDepthContext);

//# sourceMappingURL=index.js.map