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 UIActionsContext = createContext(undefined);
export function UIActionsProvider({ children, value, }) {
    return (_jsx(UIActionsContext.Provider, { value: value, children: children }));
}
export function useUIActions() {
    const context = useContext(UIActionsContext);
    if (!context) {
        throw new Error('useUIActions must be used within a UIActionsProvider');
    }
    return context;
}
export { UIActionsContext };
//# sourceMappingURL=UIActionsContext.js.map