import React from 'react'; import { X, Plus, Minus, ShoppingBag } from 'lucide-react'; import { useCartStore } from '../store/cartStore'; import { Button } from './ui/button'; import { Separator } from './ui/separator'; import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger, } from './ui/sheet'; export const Cart: React.FC = () => { const { items, removeItem, updateQuantity, total } = useCartStore(); return ( Shopping Cart
{items.length === 0 ? (

Your cart is empty

Start adding some supplements to your cart

) : ( <>
{items.map((item) => (
{item.product.name}

{item.product.name}

${item.product.price.toFixed(2)}

{item.quantity}
))}
Total ${total.toFixed(2)}
)}
); };