import Link from 'next/link'; import Image from 'next/image'; import { Container } from '@/components/ui/Container'; import { Button } from '@/components/ui/Button'; import { Navigation } from './Navigation'; import { LocaleSwitcher } from '@/components/LocaleSwitcher'; import { MobileMenu } from './MobileMenu'; interface HeaderProps { locale: string; siteName?: string; logo?: string; } export function Header({ locale, siteName = 'KLZ Cables', logo }: HeaderProps) { const isSvgLogo = logo?.endsWith('.svg'); return (
{/* Logo and Branding */}
{logo ? (
{isSvgLogo ? ( // For SVG, use img tag with proper path handling {siteName} ) : ( // For other images, use Next.js Image with optimized sizes
{siteName}
)}
) : (
KLZ
)} {siteName}
{/* Desktop Navigation */}
{/* Mobile Menu */}
); }