'use client'; import { useAuth } from '@/lib/auth-context'; interface HeaderProps { title: string; subtitle?: string; imageUrl?: string; actions?: React.ReactNode; maxWidth?: 'max-w-5xl' | 'max-w-7xl'; } export default function Header({ title, subtitle, imageUrl, actions, maxWidth = 'max-w-7xl' }: HeaderProps) { const { isAuthenticated } = useAuth(); return ( <> {/* Admin Warning */} {isAuthenticated && (

⚠️ Atenção: visualizar listas públicas pode estragar surpresas

)} {/* Hero Section */}
{imageUrl && (
{title}
)}

{title}

{subtitle && (

{subtitle}

)} {actions && (
{actions}
)}
); }