"use client"; /** * ProfileTabs — Instagram-style icon tab strip used under ProfileHeader. * * Renders a horizontal row of equal-width icon tabs. The active tab gets * a top-border indicator and stronger color. Labels are screen-reader * only by default (Instagram pattern), but a `showLabels` prop opts them * back in for surfaces with more real estate. */ import Link from "next/link"; import { usePathname } from "next/navigation"; import { cn } from "@/lib/utils"; export type ProfileTab = { href: string; label: string; icon: React.ReactNode; /** Additional pathnames that should mark this tab active. Used to keep * the Posts tab lit while the user is on the scroll feed at * /u//posts (a sibling route to /u/). */ activeFor?: string[]; }; export function ProfileTabs({ tabs, showLabels = false, }: { tabs: ProfileTab[]; showLabels?: boolean; }) { const pathname = usePathname(); return ( ); }