"use client" import { useState } from "react" import Link from "next/link" import { usePathname } from "next/navigation" import { authClient } from "@/lib/auth-client" import { cn } from "@/lib/utils" const navItems = [ { href: "/parent/dashboard", label: "Dashboard", emoji: "📊" }, { href: "/parent/configuracion", label: "Configuración", emoji: "⚙️" }, ] export default function ParentLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname() const { data: session } = authClient.useSession() const [sidebarOpen, setSidebarOpen] = useState(false) if ( pathname.startsWith("/parent/auth") ) { return
{children}
} return (

EduEasy

{session?.user?.name || "Mamá"}
{sidebarOpen && (
setSidebarOpen(false)} >
)}
{children}
) }