'use client';
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
import React, { createContext, use, useState } from 'react';
const Context = /*#__PURE__*/ createContext(undefined);
export const UploadControlsProvider = ({ children })=>{
    const [uploadControlFileName, setUploadControlFileName] = useState(null);
    const [uploadControlFileUrl, setUploadControlFileUrl] = useState('');
    const [uploadControlFile, setUploadControlFile] = useState(null);
    return /*#__PURE__*/ _jsxDEV(Context, {
        value: {
            setUploadControlFile,
            setUploadControlFileName,
            setUploadControlFileUrl,
            uploadControlFile,
            uploadControlFileName,
            uploadControlFileUrl
        },
        children: children
    }, void 0, false, {
        fileName: "src/providers/UploadControls/index.tsx",
        lineNumber: 21,
        columnNumber: 5
    }, this);
};
export const useUploadControls = ()=>{
    const context = use(Context);
    if (!context) {
        throw new Error('useUploadControls must be used within an UploadControlsProvider');
    }
    return context;
};

//# sourceMappingURL=index.js.map