//
// Copyright 2023 DXOS.org
//
import React, { createContext, useContext, useState, } from 'react';
export const DevtoolsContext = createContext(undefined);
export const DevtoolsContextProvider = ({ children }) => {
    const state = useState({});
    return React.createElement(DevtoolsContext.Provider, { value: state }, children);
};
export const useDevtoolsState = () => {
    const [state] = useContext(DevtoolsContext);
    return state;
};
export const useDevtoolsDispatch = () => {
    const [, dispatch] = useContext(DevtoolsContext);
    return dispatch;
};
//# sourceMappingURL=useDevtoolsContext.js.map