'use client'; import React from 'react'; import { Link } from 'react-router'; import { useShopifyCart } from '@/editor/hooks/use-shopify-cart'; import config from '@/editor/lib/config.json'; const CartIcon: React.FC = () => { const { toggleCart, itemCount } = useShopifyCart(); return ( {itemCount > 0 && ( {itemCount > 99 ? '99+' : itemCount} )} ); }; const Header: React.FC = () => { return ( {/* Logo */} {config.brand.logo.url ? ( ) : ( 'Store' )} {/* Navigation Links */} Products Collections {/* Cart Icon */} ); }; export default Header;