/**
 * @license MIT
 * author: Cube Dev Team
 * @cube-dev/ui-kit v0.0.0-canary-9f40d0e
 * Released under the MIT license.
 */

import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
// =============================================================================
// Context
// =============================================================================
const TabsContext = createContext(null);
TabsContext.displayName = 'TabsContext';
export function TabsProvider({ value, children }) {
    return _jsx(TabsContext.Provider, { value: value, children: children });
}
// =============================================================================
// Hook
// =============================================================================
export function useTabsContext() {
    const context = useContext(TabsContext);
    if (!context) {
        throw new Error('useTabsContext must be used within a TabsProvider');
    }
    return context;
}

        