interface TabItem { id: string; label: string; count?: number; } interface TabsProps { items: TabItem[]; activeId: string; onChange: (id: string) => void; } export function Tabs({ items, activeId, onChange }: TabsProps): JSX.Element { return (
{items.map((item) => { const isActive = item.id === activeId; return ( ); })}
); }