import { PlusIcon } from '@heroicons/react/16/solid'; import Price from 'components/price'; import { DEFAULT_OPTION } from 'lib/constants'; import { CartItem } from 'lib/shopify/types'; import { createUrl } from 'lib/utils'; import Image from 'next/image'; import Link from 'next/link'; import { DeleteItemButton } from './delete-item-button'; import { EditItemQuantityButton } from './edit-item-quantity-button'; type LineItemProps = { item: CartItem; closeCart: () => void; }; type MerchandiseSearchParams = { [key: string]: string; }; const CoreCharge = ({ coreCharge, quantity }: { coreCharge?: CartItem; quantity: number }) => { if (!coreCharge) return null; return (
{item.merchandise.title}
) : null}{item.quantity}