import { MORE_TILE } from "../config/shop.ts";
import { grid, money, PRIMARIES, productUrl, tileUrl } from "../lib/shop.ts";
import { Life } from "./Life.jsx";
function Shot({ product, primary, width, eager, tiles }) {
const image = product[primary];
const loading = eager ? "eager" : "lazy";
if (tiles) return
;
if (image) return
;
return
;
}
export function ProductCard({ product, width = 800, eager = false, tiles = false, life = true, hidden = false, now }) {
return (
{PRIMARIES.map((primary) => (
))}
{tiles ? product.design : product.title}
{money(product.price)}
{life ? <> ยท {product.released ? : "in the batch"}> : null}
);
}