'use client'; import { useRouter, usePathname } from 'next/navigation'; import Link from 'next/link'; import Cookies from 'js-cookie'; export default function DashboardLayout({ children, }: { children: React.ReactNode; }) { const router = useRouter(); const pathname = usePathname(); const handleLogout = () => { Cookies.remove('isAuthenticated', { path: '/' }); router.push('/login'); }; const isActive = (path: string) => pathname === path; return (