import { useState } from "react"; import { GIFT } from "../config/shop.ts"; import { buyHref, giftUrl, money } from "../lib/shop.ts"; import { AddToBag } from "../components/AddToBag.jsx"; import { Breadcrumbs } from "../components/Breadcrumbs.jsx"; export const TIERS = [ { tier: "mini", name: "Mini", tint: "--red", from: 11, to: 99 }, { tier: "medi", name: "Medi", tint: "--green", from: 111, to: 999 }, { tier: "maxi", name: "Maxi", tint: "--blue", from: 1111, to: 9999 }, ]; const FACE = "/bird/bird-128.png"; const whole = (price) => String(Math.round(Number(price))); function Face({ card, amount }) { return (
carlomitchener.com

{amount}

Gift Card {card.name}
); } export function GiftCards({ cards }) { return (

Gift Card

Three sizes, nine angel numbers each. Sent by email, never expires.

{cards.map((card) => (

{`${card.name} Gift Card`}

{`$${card.from} to $${card.to}`}
))}
); } export function GiftCard({ card, cards, product, buyPrefix }) { const [id, setId] = useState(""); const variant = product.variants.find((one) => one.id === id) ?? product.variants[0]; return (

{`${card.name} Gift Card`}

{`Angel numbers from ${card.from} to ${card.to}.`}

{money(variant.price)}

{product.variants.map((one) => ( ))}

Shopify emails the code after checkout. It buys anything in the shop, never expires and cannot be refunded.

); }