'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { Button } from '@/components/ui/button'; import { useAuthStore } from '@/lib/auth-store'; import { cn } from '@/lib/utils'; export default function PublicLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const { user } = useAuthStore(); return (
GoodGo
{user ? ( <> {user.fullName} ) : ( <> )}
{children}
); }