import { useContext } from 'react';
import { TabsContext } from './Tabsv2.component';
function Tab(_) {
    const context = useContext(TabsContext);
    if (!context) {
        throw new Error('Tab cannot be rendered outside the Tabs component');
    }
    return null;
}
export { Tab };
