import { NavLink } from 'react-router'; import type { ReactNode } from 'react'; import { cn } from '~/utils/cn'; interface Props { name: string; to: string; icon: ReactNode; } export default function TabLink({ name, to, icon }: Props) { return ( cn( 'border-b-2 py-1.5', isActive ? 'border-white' : 'border-transparent', ) } >
{icon} {name}
); }