'use client' import { Home, MessageSquareText, UserCircle, Users } from 'lucide-react' import Link from 'next/link' import { usePathname } from 'next/navigation' import AccountDeletionAlert from './(components)/account-deletion-alert' import UpgradeToProAlert from './(components)/upgrade-to-pro-alert' import VerifyEmailAlert from './(components)/verify-email-alert' export default function DashboardLayout({ children, }: { children: React.ReactNode }) { const pathname = usePathname() return (
{/* Sidebar for desktop */} {/* Main content with left padding to account for fixed sidebar */}
{children}
{/* Bottom navigation for mobile */} {/* Bottom padding for mobile to account for the fixed navigation */}
) } // Desktop navigation item function NavItem({ href, icon, label, isActive, }: { href: string icon: React.ReactNode label: string isActive: boolean }) { return ( {icon} {label} ) } // Mobile navigation item function MobileNavItem({ href, icon, label, isActive, }: { href: string icon: React.ReactNode label: string isActive: boolean }) { return ( {icon} {label} ) }