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