'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 && (
⚠️ Warning: Viewing public wishlists may spoil surprises
{subtitle}
)} {actions && (