import Link from "next/link" import PropTypes from "prop-types" import React from "react" import useCart from '../../hooks/useCart' import logo from './sos-logo.png' import styles from './style.module.css' const Header = ({user}) => { const [cart] = useCart() const cartSize = (cart && cart.items.length) ? cart.items.map(item => item.count).reduce((sum, current) => (sum + current)) : 0 return (

Society of Socks

) } Header.propTypes = { user: PropTypes.object, } Header.defaultProps = { user: null, } export default Header