'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { Button } from '@/components/ui/button'; import { useTheme } from '@/components/providers/theme-provider'; import { useAuthStore } from '@/lib/auth-store'; import { cn } from '@/lib/utils'; 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: '📊' }, { href: '/dashboard/profile', label: 'Hồ sơ', icon: '👤' }, { href: '/dashboard/subscription', label: 'Gói dịch vụ', icon: '💎' }, { href: '/dashboard/payments', label: 'Thanh toán', icon: '💳' }, ]; export default function DashboardLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const { user, logout } = useAuthStore(); const { theme, toggleTheme } = useTheme(); return (