'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import React from 'react';
const Context = /*#__PURE__*/ React.createContext({
    getUploadEdits: ()=>undefined,
    resetUploadEdits: undefined,
    updateUploadEdits: undefined,
    uploadEdits: undefined
});
export const UploadEditsProvider = ({ children, initialUploadEdits })=>{
    const [uploadEdits, setUploadEdits] = React.useState(initialUploadEdits || {});
    const resetUploadEdits = ()=>{
        setUploadEdits({});
    };
    const updateUploadEdits = (edits)=>{
        setUploadEdits((prevEdits)=>({
                ...prevEdits || {},
                ...edits || {}
            }));
    };
    const getUploadEdits = ()=>uploadEdits;
    return /*#__PURE__*/ _jsxDEV(Context, {
        value: {
            getUploadEdits,
            resetUploadEdits,
            updateUploadEdits,
            uploadEdits
        },
        children: children
    }, void 0, false, {
        fileName: "src/providers/UploadEdits/index.tsx",
        lineNumber: 41,
        columnNumber: 5
    }, this);
};
export const useUploadEdits = ()=>React.use(Context);

//# sourceMappingURL=index.js.map