"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export interface TabbarV2Item { id: string; label: string; badge?: number; } export interface TabbarV2Props extends React.HTMLAttributes { items?: TabbarV2Item[]; value?: string; onValueChange?: (id: string) => void; } const FALLBACK: TabbarV2Item[] = [ { id: "shows", label: "Shows" }, { id: "stubs", label: "Stubs", badge: 3 }, { id: "gates", label: "Gates" }, { id: "me", label: "Me" }, ]; /** Bottom tab bar v2 with sliding ink indicator and badges. */ export function TabbarV2({ items = FALLBACK, value, onValueChange, className, ...props }: TabbarV2Props) { const [inner, setInner] = React.useState(items[0]?.id ?? ""); const active = value ?? inner; return ( ); }