'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 ( <> {isAuthenticated && (
⚠️ Atenção: visualizar listas públicas pode estragar surpresas
{subtitle}
)} {actions && (