import { jsx as _jsx } from "react/jsx-runtime";
/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { createContext, useContext } from 'react';
const UIStateContext = createContext(undefined);
export function UIStateProvider({ children, value, }) {
    return (_jsx(UIStateContext.Provider, { value: value, children: children }));
}
export function useUIState() {
    const context = useContext(UIStateContext);
    if (!context) {
        throw new Error('useUIState must be used within a UIStateProvider');
    }
    return context;
}
export { UIStateContext };
//# sourceMappingURL=UIStateContext.js.map