'use client'; import { ChevronDownIcon } from '@heroicons/react/16/solid'; import clsx from 'clsx'; import * as React from 'react'; import Badge from '@/components/ui/Badge'; export type TabItem = { id: string; label: string; /** optional: Anzahl (z.B. Personen in der Gruppe) */ count?: number; }; type TabsProps = { tabs: TabItem[]; value: string; onChange: (id: string) => void; className?: string; ariaLabel?: string; }; export default function Tabs({ tabs, value, onChange, className, ariaLabel = 'Ansicht auswählen', }: TabsProps) { const current = tabs.find((t) => t.id === value) ?? tabs[0]; return (
{/* Mobile: Select + Chevron */}
{/* Desktop: Underline-Tabs */}
); }