import { useId, useState } from "react"; import "../styles/sdlc81/dashboard-kit.css"; export interface AppTab { id: string; label: string; count?: number | null } /** value and active are controlled aliases. Without either, the first tab is selected. */ export interface AppTabsProps { tabs: AppTab[]; value?: string; active?: string; onChange?: (id: string) => void; ariaLabel?: string; "aria-label"?: string; label?: string; } export function AppTabs(props: AppTabsProps) { const uid = useId(); const [local, setLocal] = useState(() => props.tabs[0]?.id); const tabs = props.tabs; const selected = props.value ?? props.active ?? local; const choose = (id: string) => { setLocal(id); props.onChange?.(id); }; return