import Link from 'next/link' import React from 'react' import type { LinkProps } from 'next/link' import { usePathname } from 'next/navigation' import clsx from 'clsx' type Props = { icon: React.ReactElement value: string } & LinkProps & React.AnchorHTMLAttributes function BottomNavHighlightLink({ icon, value, href, ...restProps }: Props) { const pathname = usePathname(); const isActive = pathname === href; return (
{icon}
{value} ) } export default BottomNavHighlightLink