"use client"

import { Header } from "@/components/navigation/header"
import { usePathname } from "next/navigation"

interface AppLayoutProps {
  children: React.ReactNode
}

export function AppLayout({ children }: AppLayoutProps) {
  // const { user } = useAuth()
  const pathname = usePathname()
  
  // Don't show header on auth pages or admin pages
  const isAuthPage = pathname === "/signin" || pathname === "/signup"
  const isAdminPage = pathname?.startsWith("/admin")
  
  // For auth pages and admin pages, don't show header
  if (isAuthPage || isAdminPage) {
    return <>{children}</>
  }
  
  // For all other pages, show header
  return (
    <>
      <Header />
      {children}
    </>
  )
}
