'use client'; import React, { useState } from 'react'; import Link from 'next/link'; import { useCartStore } from '@/hooks/use-shopify-cart'; import CartDrawer from '@/components/shopify/cart-drawer'; import { RiShoppingCartLine, RiCloseLine, RiMenu3Line } from '@remixicon/react'; const CartIcon: React.FC = () => { const toggleCart = useCartStore((s) => s.toggleCart); const cart = useCartStore((s) => s.cart); const itemCount = cart?.lines?.edges?.reduce((sum, { node }) => sum + node.quantity, 0) ?? 0; return ( ); }; export interface NavLink { label: string; url: string; } interface HeaderProps { storeName?: string; logoUrl?: string; links?: NavLink[]; } const Header: React.FC = ({ storeName = 'STRIDE', logoUrl, links = [ { label: 'Shop', url: '/' }, { label: 'Collections', url: '/collections' }, ], }) => { const [menuOpen, setMenuOpen] = useState(false); return ( ); }; export default Header;