import * as React from 'react'; import { cn } from '@/lib/utils'; import type { TabsContentProps } from './types'; export const TabsContent = React.forwardRef( ( { className, value: contentValue, activeValue, tabsId, children, ...props }, ref, ) => { if (activeValue !== contentValue) { return null; } const panelId = tabsId ? `${tabsId}-panel-${contentValue}` : undefined; const tabId = tabsId ? `${tabsId}-tab-${contentValue}` : undefined; return (
{children}
); }, ); TabsContent.displayName = 'TabsContent';