import { useSyncExternalStore } from "react"; import { checkoutUrl, clear, count, load, remove, server, setQty, subscribe, total } from "../lib/cart.ts"; import { designOf, GIFT_PREFIX, lineUrl, money } from "../lib/shop.ts"; import { Icon } from "../components/Icon.jsx"; function Line({ item }) { const href = lineUrl(item.key); return (
{`${item.size} · ${money(item.price)}`}
{money(Number(item.price) * item.qty)}