import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext, useState } from 'react';
const CloudContext = createContext({});
export function CloudProvider({ children, isAddRollupButtonVisible = true }) {
    const [context, set] = useState({});
    return (_jsx(CloudContext.Provider, { value: {
            isAddRollupButtonVisible,
            ...context,
            setContext(partialContext) {
                set({
                    ...context,
                    ...partialContext,
                });
            },
            isCloud: true,
        }, children: children }));
}
export function useCloud() {
    return useContext(CloudContext);
}
//# sourceMappingURL=CloudProvider.js.map