type TabKey = "gear" | "planning" | "setups"; interface CollectionTabsProps { active: TabKey; onChange: (tab: TabKey) => void; } const tabs = [ { key: "gear" as const, label: "My Gear" }, { key: "planning" as const, label: "Planning" }, { key: "setups" as const, label: "Setups" }, ]; export function CollectionTabs({ active, onChange }: CollectionTabsProps) { return (
{tabs.map((tab) => ( ))}
); }