import React from "react"; interface Tab { label: string; value: string; content: React.ReactNode; } interface CustomTabsProps { tabs: Tab[]; defaultValue?: string; onValueChange?: (value: string) => void; } export function CustomTabs({ tabs, defaultValue, onValueChange }: CustomTabsProps) { const [activeTab, setActiveTab] = React.useState(defaultValue || tabs[0]?.value || ''); const handleTabChange = (value: string) => { setActiveTab(value); if (onValueChange) { onValueChange(value); } }; return (