'use client'; import { usePathname } from 'next/navigation'; import Navbar from '@/components/Navbar'; import Footer from '@/components/Footer'; import ChatWidget from '@/components/ChatWidget'; export default function LayoutWrapper({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const isDashboard = pathname?.startsWith('/dashboard'); if (isDashboard) { // Dashboard has its own layout - render children directly return <>{children}; } // Regular pages with navbar, footer, and chat widget return ( <> {/* Progressive Blur Effect */}
{children}