'use client'; import clsx from 'clsx'; import { MenuItemType } from 'lib/geins/types'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { useEffect, useState } from 'react'; export function FooterMenuItem({ item }: { item: MenuItemType }) { const pathname = usePathname(); const [active, setActive] = useState(pathname === item.path); useEffect(() => { setActive(pathname === item.path); }, [pathname, item.path]); return (