import React from 'react' import Link from 'next/link' import { Button } from '@/components/ui/button' import { CartButton } from '@/components/cart-button' import { LogoutButton } from '@/components/logout-button' export interface SiteHeaderProps { variant?: 'full' | 'simple' user?: any title?: string subtitle?: string | React.ReactNode className?: string } export function SiteHeader({ variant = 'simple', user, title, subtitle, className = '', }: SiteHeaderProps) { if (variant === 'full') { return (
🍿

Dyad Snacks

{/* Navigation and User Actions */}
{user ? ( <>
Welcome, {user.firstName || user.email} {user.role === 'admin' && ( )}
) : (
)}
) } // Simple variant (for auth pages, etc.) return (
🍿 Dyad Snacks {title &&

{title}

} {subtitle &&
{subtitle}
}
) }