{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "your-cart-page",
  "title": "Your Cart Page",
  "description": "A three-step eCommerce flow in one block: a cart with quantity steppers and promo code, a checkout form with an order summary, and an animated order-confirmed screen.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/your-cart-page/your-cart-page.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion, type TargetAndTransition } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport type YourCartAnimation = \"blur\" | \"slide\" | \"fade\" | \"scale\";\nexport type YourCartStep = 1 | 2 | 3;\n\nexport interface YourCartItem {\n  title: string;\n  variant?: string;\n  /** Unit price as text, e.g. \"$249.00\". Only the digits are used for the totals. */\n  price: string;\n  image?: string;\n}\n\nexport interface YourCartFormValues {\n  email: string;\n  phone: string;\n  fullName: string;\n  address: string;\n  city: string;\n  region: string;\n  zip: string;\n  card: string;\n  exp: string;\n  cvc: string;\n}\n\nexport interface YourCartOrder {\n  items: { title: string; variant?: string; quantity: number; unitPrice: number }[];\n  subtotal: number;\n  discount: number;\n  shipping: number;\n  tax: number;\n  total: number;\n  orderNumber: string;\n  customer: YourCartFormValues;\n}\n\nexport interface YourCartPageProps {\n  items: YourCartItem[];\n  heading?: string;\n  checkoutLabel?: string;\n  payLabel?: string;\n  confirmTitle?: string;\n  confirmBody?: string;\n  orderNumber?: string;\n  /** Flat shipping cost in the currency of the prices. 0 shows \"Free\" at checkout. */\n  shippingAmount?: number;\n  /** 0.08 = 8%. */\n  taxRate?: number;\n  currency?: string;\n  /** Promo codes that take 10% off, compared case-insensitively. */\n  promoCodes?: string[];\n  defaultValues?: Partial<YourCartFormValues>;\n  defaultStep?: YourCartStep;\n  animation?: YourCartAnimation;\n  animationDuration?: number;\n  onPay?: (order: YourCartOrder) => void;\n  onViewOrder?: () => void;\n  onContinueShopping?: () => void;\n  theme?: \"dark\" | \"light\";\n  accentColor?: string;\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { bg: \"#0A0A0A\", title: \"#FFFFFF\", muted: \"rgba(255,255,255,0.45)\", line: \"rgba(255,255,255,0.12)\", thumb: \"#1A1A1A\", input: \"rgba(255,255,255,0.04)\", buttonBg: \"#FFFFFF\", buttonText: \"#111111\", track: \"rgba(255,255,255,0.12)\" },\n  light: { bg: \"#FFFFFF\", title: \"#111111\", muted: \"rgba(0,0,0,0.45)\", line: \"rgba(0,0,0,0.1)\", thumb: \"#ECECEC\", input: \"rgba(0,0,0,0.03)\", buttonBg: \"#111111\", buttonText: \"#FFFFFF\", track: \"rgba(0,0,0,0.12)\" },\n};\n\ntype Palette = (typeof PALETTES)[\"dark\"];\n\nconst EMPTY_FORM: YourCartFormValues = { email: \"\", phone: \"\", fullName: \"\", address: \"\", city: \"\", region: \"\", zip: \"\", card: \"\", exp: \"\", cvc: \"\" };\n\nconst parsePrice = (value: string) => {\n  const n = Number(String(value).replace(/[^0-9.]/g, \"\"));\n  return Number.isFinite(n) ? n : 0;\n};\n\nfunction stepVariants(type: YourCartAnimation): { initial: TargetAndTransition; animate: TargetAndTransition; exit: TargetAndTransition } {\n  switch (type) {\n    case \"slide\":\n      return { initial: { opacity: 0, y: 48 }, animate: { opacity: 1, y: 0 }, exit: { opacity: 0, y: -28 } };\n    case \"fade\":\n      return { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 } };\n    case \"scale\":\n      return { initial: { opacity: 0, scale: 0.75 }, animate: { opacity: 1, scale: 1 }, exit: { opacity: 0, scale: 0.92 } };\n    default:\n      return { initial: { opacity: 0, y: 40, filter: \"blur(12px)\" }, animate: { opacity: 1, y: 0, filter: \"blur(0px)\" }, exit: { opacity: 0, y: -16, filter: \"blur(8px)\" } };\n  }\n}\n\nfunction Thumb({ src, alt, size, radius, p }: { src?: string; alt: string; size: number; radius: number; p: Palette }) {\n  return (\n    <div className=\"shrink-0 overflow-hidden\" style={{ width: size, height: size, borderRadius: radius, background: p.thumb }}>\n      {/* eslint-disable-next-line @next/next/no-img-element */}\n      {src && <img src={src} alt={alt} className=\"block size-full object-cover\" />}\n    </div>\n  );\n}\n\nfunction Field({ label, value, onChange, p, ring, type = \"text\", autoComplete, inputMode, name, placeholder }: { label: string; value: string; onChange: (v: string) => void; p: Palette; ring: React.CSSProperties; type?: string; autoComplete?: string; inputMode?: React.HTMLAttributes<HTMLInputElement>[\"inputMode\"]; name?: string; placeholder?: string }) {\n  return (\n    <label className=\"mb-3.5 block\">\n      <span className=\"mb-[7px] block text-[13.5px] leading-[1.3]\" style={{ color: p.muted }}>{label}</span>\n      <input\n        value={value}\n        onChange={(e) => onChange(e.target.value)}\n        type={type}\n        name={name}\n        autoComplete={autoComplete}\n        inputMode={inputMode}\n        placeholder={placeholder}\n        className=\"box-border w-full rounded-xl px-3.5 py-[11px] text-[15px] leading-[1.3] font-medium outline-none focus:ring-2\"\n        style={{ border: `1px solid ${p.line}`, background: p.input, color: p.title, ...ring }}\n      />\n    </label>\n  );\n}\n\nexport function YourCartPage({\n  items,\n  heading = \"Your Cart\",\n  checkoutLabel = \"Checkout\",\n  payLabel = \"Pay Now\",\n  confirmTitle = \"Order Confirmed\",\n  confirmBody = \"Your order has been placed successfully.\",\n  orderNumber = \"#ORD-48291\",\n  shippingAmount = 0,\n  taxRate = 0.08,\n  currency = \"$\",\n  promoCodes = [\"SAVE10\"],\n  defaultValues,\n  defaultStep = 1,\n  animation = \"blur\",\n  animationDuration = 0.7,\n  onPay,\n  onViewOrder,\n  onContinueShopping,\n  theme = \"dark\",\n  accentColor = \"#7CDE6A\",\n  className,\n}: YourCartPageProps) {\n  const p = PALETTES[theme];\n  const reduce = useReducedMotion() ?? false;\n  const [step, setStep] = React.useState<YourCartStep>(defaultStep);\n  const [quantities, setQuantities] = React.useState<number[]>(() => items.map(() => 1));\n  const [promo, setPromo] = React.useState(\"\");\n  const [promoApplied, setPromoApplied] = React.useState(false);\n  const [form, setForm] = React.useState<YourCartFormValues>({ ...EMPTY_FORM, ...defaultValues });\n\n  const money = (n: number) => `${currency} ${n.toFixed(2)}`;\n  const setField = (key: keyof YourCartFormValues) => (value: string) => setForm((f) => ({ ...f, [key]: value }));\n  const ring = { [\"--tw-ring-color\" as string]: accentColor };\n  const focus = \"outline-none focus-visible:ring-2\";\n\n  const rows = items.map((item, index) => ({ ...item, index, quantity: quantities[index] ?? 0, unit: parsePrice(item.price) })).filter((row) => row.quantity > 0);\n  const subtotal = rows.reduce((sum, row) => sum + row.unit * row.quantity, 0);\n  const discount = promoApplied ? subtotal * 0.1 : 0;\n  const taxable = Math.max(0, subtotal - discount);\n  const tax = taxable * taxRate;\n  const total = taxable + shippingAmount + tax;\n\n  const changeQty = (index: number, next: number) => setQuantities((q) => q.map((v, i) => (i === index ? Math.max(0, Math.min(99, next)) : v)));\n  const applyPromo = () => setPromoApplied(promoCodes.some((code) => code.toUpperCase() === promo.trim().toUpperCase()));\n\n  const pay = () => {\n    onPay?.({\n      items: rows.map((row) => ({ title: row.title, variant: row.variant, quantity: row.quantity, unitPrice: row.unit })),\n      subtotal,\n      discount,\n      shipping: shippingAmount,\n      tax,\n      total,\n      orderNumber,\n      customer: form,\n    });\n    setStep(3);\n  };\n\n  const variants = stepVariants(animation);\n  const transition = reduce ? { duration: 0 } : { duration: animationDuration, ease: [0.16, 1, 0.3, 1] as const };\n\n  return (\n    <section aria-label={heading} className={cn(\"@container w-full\", className)} style={{ background: p.bg, color: p.title, fontFamily: \"Inter, sans-serif\" }}>\n      <div className=\"mx-auto max-w-[1164px] px-[18px] pt-5 pb-10 @[920px]:px-[22px] @[920px]:pt-[9px] @[920px]:pb-12\">\n        <div className=\"mb-[22px] flex items-center justify-end gap-3\">\n          <span aria-live=\"polite\" className=\"text-[13.5px] leading-[1.3]\" style={{ color: p.muted }}>Step {step} of 3</span>\n          <div role=\"progressbar\" aria-valuemin={1} aria-valuemax={3} aria-valuenow={step} aria-label=\"Checkout progress\" className=\"h-2 w-[148px] overflow-hidden rounded-full\" style={{ background: p.track }}>\n            <motion.div initial={false} animate={{ width: `${(step / 3) * 100}%` }} transition={transition} className=\"h-full rounded-full\" style={{ background: accentColor }} />\n          </div>\n        </div>\n\n        <AnimatePresence mode=\"wait\">\n          <motion.div key={step} initial={reduce ? false : variants.initial} animate={variants.animate} exit={reduce ? undefined : variants.exit} transition={transition}>\n            {step === 1 && (\n              <div>\n                <h1 className=\"m-0 mb-4 text-[38px] leading-[1.1] font-bold tracking-[-0.04em]\">{heading}</h1>\n                <div className=\"grid grid-cols-1 items-start gap-[18px] @[920px]:grid-cols-[minmax(0,1.35fr)_320px]\">\n                  <ul aria-label=\"Cart items\" className=\"m-0 list-none overflow-hidden rounded-2xl p-0\" style={{ border: `1px solid ${p.line}` }}>\n                    {rows.length === 0 && <li className=\"p-6 text-[14px]\" style={{ color: p.muted }}>Your cart is empty. Add products to continue checkout.</li>}\n                    {rows.map((row, i) => (\n                      <li key={`${row.title}-${row.index}`} className=\"grid grid-cols-[56px_1fr] items-center gap-3.5 p-4 @[920px]:grid-cols-[64px_minmax(0,1fr)_auto_auto_auto]\" style={{ borderBottom: i === rows.length - 1 ? \"none\" : `1px solid ${p.line}` }}>\n                        <Thumb src={row.image} alt={row.title} size={64} radius={12} p={p} />\n                        <div className=\"min-w-0\">\n                          <div className=\"text-[16px] leading-[1.2] font-medium\">{row.title}</div>\n                          {row.variant && <div className=\"text-[14px] leading-[1.3]\" style={{ color: p.muted }}>{row.variant}</div>}\n                        </div>\n                        <div className=\"col-span-2 flex items-center justify-between gap-3 @[920px]:contents\">\n                          <div role=\"group\" aria-label={`Quantity for ${row.title}`} className=\"inline-flex items-center rounded-full\" style={{ border: `1px solid ${p.line}` }}>\n                            <button type=\"button\" aria-label={`Decrease quantity of ${row.title}`} onClick={() => changeQty(row.index, row.quantity - 1)} className={cn(\"size-8 cursor-pointer rounded-full border-none bg-transparent\", focus)} style={{ color: p.title, ...ring }}>&minus;</button>\n                            <span aria-live=\"polite\" className=\"min-w-4 text-center text-[14px] leading-8 font-medium\">{row.quantity}</span>\n                            <button type=\"button\" aria-label={`Increase quantity of ${row.title}`} onClick={() => changeQty(row.index, row.quantity + 1)} className={cn(\"size-8 cursor-pointer rounded-full border-none bg-transparent\", focus)} style={{ color: p.title, ...ring }}>+</button>\n                          </div>\n                          <div className=\"text-right text-[15px] leading-[1.3] font-medium @[920px]:text-left\">{money(row.unit * row.quantity)}</div>\n                          <button type=\"button\" aria-label={`Remove ${row.title} from cart`} onClick={() => changeQty(row.index, 0)} className={cn(\"size-9 cursor-pointer rounded-[10px] bg-transparent\", focus)} style={{ border: `1px solid ${p.line}`, color: p.muted, ...ring }}>\n                            <svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" className=\"mx-auto\">\n                              <path d=\"M9 5h11a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H9L3 12l6-7z\" />\n                              <path d=\"M12.5 9.5l5 5M17.5 9.5l-5 5\" />\n                            </svg>\n                          </button>\n                        </div>\n                      </li>\n                    ))}\n                  </ul>\n\n                  <aside aria-label=\"Order totals\" className=\"rounded-2xl p-[18px]\" style={{ border: `1px solid ${p.line}` }}>\n                    {([[\"Subtotal\", money(subtotal)], [\"Shipping\", money(shippingAmount)], ...(promoApplied ? [[\"Discount (10%)\", `− ${money(discount)}`]] : []), [\"Tax\", money(tax)]] as [string, string][]).map(([label, value]) => (\n                      <div key={label} className=\"mb-2.5 flex justify-between\">\n                        <span className=\"text-[14px] leading-[1.3]\" style={{ color: p.muted }}>{label}</span>\n                        <span className=\"text-[15px] leading-[1.2] font-medium\">{value}</span>\n                      </div>\n                    ))}\n                    <div className=\"my-[10.5px] h-px\" style={{ background: p.line }} />\n                    <div className=\"mb-[14.5px] flex justify-between text-[26px] leading-[1.2] font-bold tracking-[-0.03em]\">\n                      <span>Total</span>\n                      <span>{money(total)}</span>\n                    </div>\n                    <div className=\"mb-3.5 flex items-center gap-2.5\">\n                      <input\n                        value={promo}\n                        onChange={(e) => {\n                          setPromo(e.target.value);\n                          setPromoApplied(false);\n                        }}\n                        placeholder=\"Promo code\"\n                        aria-label=\"Promo code\"\n                        autoComplete=\"off\"\n                        className=\"min-w-0 flex-1 rounded-full bg-transparent px-3.5 py-[9px] text-[15px] leading-[1.3] font-medium outline-none focus:ring-2\"\n                        style={{ border: `1px solid ${p.line}`, color: p.title, ...ring }}\n                      />\n                      <button type=\"button\" onClick={applyPromo} aria-label=\"Apply promo code\" className={cn(\"cursor-pointer rounded-md border-none bg-transparent text-[15px] leading-[1.3] font-medium\", focus)} style={{ color: p.title, ...ring }}>Apply</button>\n                    </div>\n                    {promoApplied && <p role=\"status\" className=\"m-0 mb-3 text-[14px]\" style={{ color: accentColor }}>Promo code applied.</p>}\n                    <button type=\"button\" disabled={rows.length === 0} onClick={() => setStep(2)} className={cn(\"w-full cursor-pointer rounded-full border-none px-4 py-3 text-[15px] leading-[1.3] font-medium disabled:cursor-not-allowed disabled:opacity-50\", focus)} style={{ background: p.buttonBg, color: p.buttonText, ...ring }}>\n                      {checkoutLabel}\n                    </button>\n                  </aside>\n                </div>\n              </div>\n            )}\n\n            {step === 2 && (\n              <div>\n                <h1 className=\"m-0 mb-4 text-[38px] leading-[1.1] font-bold tracking-[-0.04em]\">Contact</h1>\n                <div className=\"grid grid-cols-1 items-start gap-6 @[920px]:grid-cols-[minmax(0,1.15fr)_340px]\">\n                  <div>\n                    <Field label=\"Email address\" value={form.email} onChange={setField(\"email\")} p={p} ring={ring} type=\"email\" autoComplete=\"email\" name=\"email\" placeholder=\"you@example.com\" />\n                    <Field label=\"Phone number\" value={form.phone} onChange={setField(\"phone\")} p={p} ring={ring} type=\"tel\" autoComplete=\"tel\" name=\"phone\" placeholder=\"+1 (555) 123-4567\" />\n                    <h2 className=\"mx-0 mt-2.5 mb-4 text-[38px] leading-[1.1] font-bold tracking-[-0.04em]\">Shipping Address</h2>\n                    <Field label=\"Full name\" value={form.fullName} onChange={setField(\"fullName\")} p={p} ring={ring} autoComplete=\"name\" name=\"name\" />\n                    <Field label=\"Address\" value={form.address} onChange={setField(\"address\")} p={p} ring={ring} autoComplete=\"street-address\" name=\"address\" />\n                    <div className=\"grid grid-cols-2 gap-3\">\n                      <Field label=\"City\" value={form.city} onChange={setField(\"city\")} p={p} ring={ring} autoComplete=\"address-level2\" name=\"city\" />\n                      <Field label=\"State\" value={form.region} onChange={setField(\"region\")} p={p} ring={ring} autoComplete=\"address-level1\" name=\"state\" />\n                    </div>\n                    <Field label=\"ZIP code\" value={form.zip} onChange={setField(\"zip\")} p={p} ring={ring} autoComplete=\"postal-code\" name=\"zip\" />\n                    <h2 className=\"mx-0 mt-2.5 mb-4 text-[38px] leading-[1.1] font-bold tracking-[-0.04em]\">Payment</h2>\n                    <Field label=\"Card number\" value={form.card} onChange={setField(\"card\")} p={p} ring={ring} autoComplete=\"cc-number\" inputMode=\"numeric\" name=\"card\" placeholder=\"4242 4242 4242 4242\" />\n                    <div className=\"grid grid-cols-[1fr_140px] gap-3\">\n                      <Field label=\"Expiration date\" value={form.exp} onChange={setField(\"exp\")} p={p} ring={ring} autoComplete=\"cc-exp\" name=\"exp\" placeholder=\"MM / YY\" />\n                      <Field label=\"CVC\" value={form.cvc} onChange={setField(\"cvc\")} p={p} ring={ring} autoComplete=\"cc-csc\" inputMode=\"numeric\" name=\"cvc\" placeholder=\"123\" />\n                    </div>\n                  </div>\n\n                  <aside aria-label=\"Order summary\" className=\"mt-[26px] rounded-2xl p-[18px]\" style={{ border: `1px solid ${p.line}` }}>\n                    <div className=\"mb-3.5 text-[13px] leading-[1.3] tracking-[0.08em]\" style={{ color: p.muted }}>ORDER SUMMARY</div>\n                    {rows.map((row) => (\n                      <div key={`${row.title}-${row.index}`} className=\"mb-3.5 flex gap-2.5\">\n                        <Thumb src={row.image} alt={row.title} size={48} radius={10} p={p} />\n                        <div className=\"min-w-0 flex-1\">\n                          <div className=\"text-[16px] leading-[1.2] font-medium\">{row.title}</div>\n                          {row.variant && <div className=\"text-[14px] leading-[1.3]\" style={{ color: p.muted }}>{row.variant}</div>}\n                          <div className=\"text-[14px] leading-[1.3]\" style={{ color: p.muted }}>Qty: {row.quantity}</div>\n                        </div>\n                        <div className=\"text-[15px] leading-[1.3] font-medium\">{money(row.unit * row.quantity)}</div>\n                      </div>\n                    ))}\n                    <div className=\"mt-0 mb-[13px] h-px\" style={{ background: p.line }} />\n                    {([[\"Subtotal\", money(subtotal)], [\"Shipping\", shippingAmount === 0 ? \"Free\" : money(shippingAmount)], ...(promoApplied ? [[\"Discount (10%)\", `− ${money(discount)}`]] : []), [\"Tax\", money(tax)]] as [string, string][]).map(([label, value]) => (\n                      <div key={label} className=\"mb-2 flex justify-between\">\n                        <span className=\"text-[14px] leading-[1.3]\" style={{ color: p.muted }}>{label}</span>\n                        <span className=\"text-[12px] leading-[1.3] font-medium\">{value}</span>\n                      </div>\n                    ))}\n                    <div className=\"mt-0 mb-3.5 flex justify-between text-[26px] leading-[1.2] font-bold tracking-[-0.03em]\">\n                      <span>Total</span>\n                      <span>{money(total)}</span>\n                    </div>\n                    <button type=\"button\" onClick={pay} className={cn(\"w-full cursor-pointer rounded-full border-none px-4 py-3 text-[15px] leading-[1.3] font-medium\", focus)} style={{ background: p.buttonBg, color: p.buttonText, ...ring }}>\n                      {payLabel}\n                    </button>\n                    <p className=\"m-0 mt-2.5 text-center text-[14px] leading-[1.3]\" style={{ color: p.muted }}>Secure checkout</p>\n                  </aside>\n                </div>\n              </div>\n            )}\n\n            {step === 3 && (\n              <div className=\"mx-auto max-w-[558px] text-center\">\n                <svg width=\"84\" height=\"84\" viewBox=\"0 0 76 76\" fill=\"none\" aria-hidden=\"true\" className=\"mx-auto mt-6 mb-7 block\">\n                  <motion.circle cx=\"38\" cy=\"38\" r=\"35\" stroke={accentColor} strokeWidth=\"3.5\" initial={reduce ? false : { pathLength: 0 }} animate={{ pathLength: 1 }} transition={{ duration: 0.7, ease: [0.16, 1, 0.3, 1] }} />\n                  <motion.path d=\"M24 39.5l9.5 9.5L53 28\" stroke={accentColor} strokeWidth=\"3.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" initial={reduce ? false : { pathLength: 0 }} animate={{ pathLength: 1 }} transition={{ duration: 0.5, delay: 0.35, ease: [0.16, 1, 0.3, 1] }} />\n                </svg>\n                <h1 className=\"m-0 mb-2.5 text-[38px] leading-[1.1] font-bold tracking-[-0.04em]\">{confirmTitle}</h1>\n                <p className=\"m-0 text-[14px] leading-[1.6]\" style={{ color: p.muted }}>{confirmBody}</p>\n                <p className=\"m-0 mb-6 text-[14px] leading-[1.6]\" style={{ color: p.muted }}>\n                  Order number <strong className=\"font-bold\" style={{ color: p.title }}>{orderNumber}</strong>.\n                </p>\n\n                <div className=\"mb-5 rounded-2xl p-[18px] text-left\" style={{ border: `1px solid ${p.line}` }}>\n                  <div className=\"mb-3.5 text-[13px] leading-[1.3] tracking-[0.08em]\" style={{ color: p.muted }}>ORDER SUMMARY</div>\n                  {rows.map((row) => (\n                    <div key={`${row.title}-${row.index}`} className=\"mb-3 flex gap-3\">\n                      <Thumb src={row.image} alt={row.title} size={44} radius={9} p={p} />\n                      <div className=\"min-w-0 flex-1\">\n                        <div className=\"text-[16px] leading-[1.2] font-medium\">{row.title}</div>\n                        {row.variant && <div className=\"text-[14px] leading-[1.3]\" style={{ color: p.muted }}>{row.variant}</div>}\n                      </div>\n                      <div className=\"text-[15px] leading-[1.3] font-medium\">{money(row.unit * row.quantity)}</div>\n                    </div>\n                  ))}\n                  <div className=\"mt-0 mb-2.5 h-px\" style={{ background: p.line }} />\n                  <div className=\"flex justify-between text-[26px] leading-[1.2] font-bold tracking-[-0.03em]\">\n                    <span>Total</span>\n                    <span>{money(total)}</span>\n                  </div>\n                </div>\n\n                <div className=\"flex flex-wrap justify-center gap-2.5\">\n                  <button type=\"button\" onClick={onViewOrder} className={cn(\"cursor-pointer rounded-full bg-transparent px-[22px] py-3 text-[15px] leading-[1.3] font-medium\", focus)} style={{ border: `1px solid ${p.line}`, color: p.title, ...ring }}>View Order</button>\n                  <button\n                    type=\"button\"\n                    onClick={() => {\n                      onContinueShopping?.();\n                      setStep(1);\n                    }}\n                    className={cn(\"cursor-pointer rounded-full border-none px-[22px] py-3 text-[15px] leading-[1.3] font-medium\", focus)}\n                    style={{ background: p.buttonBg, color: p.buttonText, ...ring }}\n                  >\n                    Continue Shopping\n                  </button>\n                </div>\n              </div>\n            )}\n          </motion.div>\n        </AnimatePresence>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}