import { ShoppingBag } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useStorefront } from '../context'; import { storefrontText } from '../text'; import type { HeaderSection } from '../types'; import { Container, SfButton, SfLink } from '../ui'; export function Header({ section, }: { section: Pick; }) { const { logoText, links, cta } = section.content; const centered = section.variant === 'centered'; const { cart, language } = useStorefront(); const t = storefrontText(language); const cartLink = ( ); return (
{logoText} {centered ? (
{cartLink}
) : (
{cartLink} {cta && ( {cta.label} )}
)}
); }