'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { cn } from '@/lib/utils'; import { useAuthStore } from '@/lib/auth-store'; import { Button } from '@/components/ui/button'; const navItems = [ { href: '/dashboard', label: 'Bảng điều khiển', icon: '🏠' }, { href: '/listings', label: 'Tin đăng', icon: '📋' }, { href: '/listings/new', label: 'Đăng tin', icon: '➕' }, { href: '/analytics', label: 'Phân tích', icon: '📊' }, ]; export default function DashboardLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const { user, logout } = useAuthStore(); return (