{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "recent-orders-table",
  "title": "Recent Orders Table Block",
  "description": "A store's recent orders: today's count and revenue, status tabs with counts, search across orders, customers and products, rows with product thumbnails, payment pills and a four-step fulfillment tracker, and an expandable panel with line items, totals, shipping steps and a button that moves the order to its next step. New orders slide in live.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/recent-orders-table/recent-orders-table.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } 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 Payment = \"paid\" | \"pending\" | \"refunded\";\nexport type Fulfillment = \"unfulfilled\" | \"packed\" | \"shipped\" | \"delivered\";\n\nexport interface OrderLine {\n  name: string;\n  image?: string;\n  qty: number;\n  price: number;\n}\n\nexport interface Order {\n  id: string;\n  number: string;\n  customer: string;\n  email?: string;\n  /** ISO time. */\n  placed: string;\n  channel: string;\n  payment: Payment;\n  fulfillment: Fulfillment;\n  lines: OrderLine[];\n  shipping?: number;\n  carrier?: string;\n}\n\nexport interface RecentOrdersTableProps {\n  title?: string;\n  orders?: Order[];\n  /** Orders that come in while the table is open (demo). */\n  incoming?: Order[];\n  interval?: number;\n  now?: string;\n  currency?: string;\n  onAdvance?: (id: string, to: Fulfillment) => void;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: { bg: \"#0A0A0A\", text: \"#F5F4F1\", muted: \"rgba(245,244,241,0.62)\", faint: \"rgba(245,244,241,0.36)\", card: \"#121212\", border: \"rgba(255,255,255,0.09)\", chip: \"rgba(255,255,255,0.06)\", row: \"rgba(255,255,255,0.025)\", thumb: \"#1E1E1E\", on: \"#F5F4F1\", onText: \"#0A0A0A\", green: \"#4ADE80\", amber: \"#FBBF24\", red: \"#F87171\", blue: \"#60A5FA\", fresh: \"rgba(74,222,128,0.12)\", clear: \"rgba(74,222,128,0)\", ring: \"rgba(245,244,241,0.6)\" },\n  light: { bg: \"#FAFAF8\", text: \"#0A0A0A\", muted: \"rgba(10,10,10,0.62)\", faint: \"rgba(10,10,10,0.4)\", card: \"#FFFFFF\", border: \"rgba(10,10,10,0.09)\", chip: \"rgba(10,10,10,0.05)\", row: \"rgba(10,10,10,0.02)\", thumb: \"#F1F1EE\", on: \"#0A0A0A\", onText: \"#FAFAF8\", green: \"#15803D\", amber: \"#B45309\", red: \"#DC2626\", blue: \"#2563EB\", fresh: \"rgba(21,128,61,0.1)\", clear: \"rgba(21,128,61,0)\", ring: \"rgba(10,10,10,0.5)\" },\n};\n\nconst IMG = { bottle: \"/demo/insulated-water-bottle.webp\", watch: \"/demo/minimal-watch.webp\", notebook: \"/demo/notebook.webp\", buds: \"/demo/wireless-earbuds.webp\", shoes: \"/demo/running-shoes.webp\", stand: \"/demo/laptop-stand.webp\" };\nconst P = {\n  bottle: { name: \"Insulated Bottle 750ml\", image: IMG.bottle, price: 34 },\n  watch: { name: \"Minimal Watch, Black\", image: IMG.watch, price: 189 },\n  notebook: { name: \"Hardcover Notebook A5\", image: IMG.notebook, price: 22 },\n  buds: { name: \"Wireless Earbuds Pro\", image: IMG.buds, price: 149 },\n  shoes: { name: \"Daily Runner, Size 42\", image: IMG.shoes, price: 129 },\n  stand: { name: \"Aluminium Laptop Stand\", image: IMG.stand, price: 59 },\n};\nconst ago = (min: number) => new Date(Date.parse(\"2026-11-01T15:00:00Z\") - min * 60000).toISOString();\nconst line = (k: keyof typeof P, qty = 1): OrderLine => ({ ...P[k], qty });\nconst DEFAULT_ORDERS: Order[] = [\n  { id: \"o1\", number: \"#10482\", customer: \"Amara Diallo\", email: \"amara@hey.com\", placed: ago(6), channel: \"Online store\", payment: \"paid\", fulfillment: \"unfulfilled\", lines: [line(\"buds\"), line(\"notebook\", 2)], shipping: 0 },\n  { id: \"o2\", number: \"#10481\", customer: \"Jonas Weber\", email: \"jonas.w@mail.de\", placed: ago(31), channel: \"Online store\", payment: \"paid\", fulfillment: \"packed\", lines: [line(\"watch\")], shipping: 6 },\n  { id: \"o3\", number: \"#10480\", customer: \"Priya Nair\", email: \"priya@nair.in\", placed: ago(74), channel: \"Marketplace\", payment: \"pending\", fulfillment: \"unfulfilled\", lines: [line(\"shoes\"), line(\"bottle\")], shipping: 8 },\n  { id: \"o4\", number: \"#10479\", customer: \"Lucas Moreau\", email: \"lucas@moreau.fr\", placed: ago(150), channel: \"Point of sale\", payment: \"paid\", fulfillment: \"delivered\", lines: [line(\"stand\"), line(\"notebook\")], shipping: 0 },\n  { id: \"o5\", number: \"#10478\", customer: \"Hana Sato\", email: \"hana.sato@jp.net\", placed: ago(260), channel: \"Online store\", payment: \"paid\", fulfillment: \"shipped\", lines: [line(\"bottle\", 3)], shipping: 6, carrier: \"DHL · 4821 9930 12\" },\n  { id: \"o6\", number: \"#10477\", customer: \"Ethan Brooks\", email: \"ethan@brooks.io\", placed: ago(410), channel: \"Online store\", payment: \"refunded\", fulfillment: \"unfulfilled\", lines: [line(\"watch\"), line(\"buds\")], shipping: 0 },\n  { id: \"o7\", number: \"#10476\", customer: \"Sofia Rossi\", email: \"sofia.r@posta.it\", placed: ago(700), channel: \"Marketplace\", payment: \"paid\", fulfillment: \"shipped\", lines: [line(\"shoes\")], shipping: 8, carrier: \"UPS · 1Z 99A 0X4\" },\n];\nconst DEFAULT_INCOMING: Order[] = [\n  { id: \"n1\", number: \"#10483\", customer: \"Mateo García\", email: \"mateo@garcia.es\", placed: ago(0), channel: \"Online store\", payment: \"paid\", fulfillment: \"unfulfilled\", lines: [line(\"stand\"), line(\"bottle\")], shipping: 6 },\n];\n\nconst STEPS: Fulfillment[] = [\"unfulfilled\", \"packed\", \"shipped\", \"delivered\"];\nconst STEP_LABEL: Record<Fulfillment, string> = { unfulfilled: \"Unfulfilled\", packed: \"Packed\", shipped: \"Shipped\", delivered: \"Delivered\" };\nconst NEXT_LABEL: Partial<Record<Fulfillment, string>> = { unfulfilled: \"Mark packed\", packed: \"Mark shipped\", shipped: \"Mark delivered\" };\n\nfunction rel(iso: string, now: string) {\n  const m = Math.max(0, Math.round((Date.parse(now) - Date.parse(iso)) / 60000));\n  if (m < 1) return \"Just now\";\n  if (m < 60) return `${m} min ago`;\n  return `${Math.round(m / 60)} h ago`;\n}\n\ntype Tab = \"all\" | \"unfulfilled\" | \"unpaid\" | \"shipped\";\n\nexport function RecentOrdersTable({ title = \"Recent orders\", orders, incoming = DEFAULT_INCOMING, interval = 5000, now: nowProp = \"2026-11-01T15:00:00Z\", currency = \"$\", onAdvance, theme = \"dark\", className }: RecentOrdersTableProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const [list, setList] = React.useState<Order[]>(() => orders ?? DEFAULT_ORDERS);\n  const [tab, setTab] = React.useState<Tab>(\"all\");\n  const [q, setQ] = React.useState(\"\");\n  const [open, setOpen] = React.useState<string | null>(null);\n  const [fresh, setFresh] = React.useState<string[]>([]);\n  const [now, setNow] = React.useState(nowProp);\n  const sent = React.useRef(0);\n\n  React.useEffect(() => {\n    if (!incoming.length) return;\n    const t = setInterval(() => {\n      const next = incoming[sent.current];\n      if (!next) return clearInterval(t);\n      sent.current += 1;\n      setNow((n) => new Date(Date.parse(n) + 60000).toISOString());\n      setList((l) => [{ ...next, placed: new Date(Date.parse(nowProp) + sent.current * 60000).toISOString() }, ...l]);\n      setFresh((f) => [...f, next.id]);\n    }, interval);\n    return () => clearInterval(t);\n  }, [incoming, interval, nowProp]);\n\n  const money = (n: number) => `${currency}${n.toLocaleString(\"en-US\", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`;\n  const total = (o: Order) => o.lines.reduce((s, l) => s + l.qty * l.price, 0) + (o.shipping ?? 0);\n  const match: Record<Tab, (o: Order) => boolean> = {\n    all: () => true,\n    unfulfilled: (o) => o.payment !== \"refunded\" && (o.fulfillment === \"unfulfilled\" || o.fulfillment === \"packed\"),\n    unpaid: (o) => o.payment === \"pending\",\n    shipped: (o) => o.fulfillment === \"shipped\" || o.fulfillment === \"delivered\",\n  };\n  const query = q.trim().toLowerCase();\n  const rows = list.filter((o) => match[tab](o) && (!query || `${o.number} ${o.customer} ${o.email ?? \"\"} ${o.lines.map((l) => l.name).join(\" \")}`.toLowerCase().includes(query)));\n  const today = list.filter((o) => o.payment !== \"refunded\");\n  const revenue = today.reduce((s, o) => s + total(o), 0);\n  const advance = (o: Order) => {\n    const to = STEPS[STEPS.indexOf(o.fulfillment) + 1];\n    if (!to) return;\n    setList((l) => l.map((x) => (x.id === o.id ? { ...x, fulfillment: to, carrier: to === \"shipped\" ? (x.carrier ?? \"DHL · 4821 7713 05\") : x.carrier } : x)));\n    onAdvance?.(o.id, to);\n  };\n\n  const ring = { [\"--tw-ring-color\" as string]: p.ring, [\"--tw-ring-offset-color\" as string]: p.card } as React.CSSProperties;\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n  const payPill = (pay: Payment) => {\n    const c = pay === \"paid\" ? p.green : pay === \"pending\" ? p.amber : p.faint;\n    return (\n      <span className=\"inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-[12px] font-medium whitespace-nowrap\" style={{ background: p.chip, color: c }}>\n        <span className=\"h-1.5 w-1.5 rounded-full\" style={{ background: c }} aria-hidden=\"true\" />\n        {pay === \"paid\" ? \"Paid\" : pay === \"pending\" ? \"Payment pending\" : \"Refunded\"}\n      </span>\n    );\n  };\n  const tracker = (f: Fulfillment, refunded: boolean) => {\n    const idx = STEPS.indexOf(f);\n    return (\n      <span className=\"flex items-center gap-2 whitespace-nowrap\" aria-label={`Fulfillment: ${refunded ? \"Cancelled\" : STEP_LABEL[f]}`}>\n        <span className=\"flex gap-0.5\" aria-hidden=\"true\">\n          {STEPS.slice(1).map((s, i) => (\n            <motion.span key={s} className=\"h-1.5 w-3.5 rounded-full\" initial={false} animate={{ background: !refunded && i < idx ? (idx === 3 ? p.green : p.blue) : p.chip }} transition={{ duration: reduce ? 0 : 0.35, delay: reduce ? 0 : i * 0.06 }} />\n          ))}\n        </span>\n        <span className=\"text-[12.5px]\" style={{ color: refunded ? p.faint : idx === 0 ? p.amber : p.muted }}>\n          {refunded ? \"Cancelled\" : STEP_LABEL[f]}\n        </span>\n      </span>\n    );\n  };\n  const thumbs = (o: Order) => (\n    <span className=\"flex -space-x-2.5\" aria-hidden=\"true\">\n      {o.lines.slice(0, 3).map((l, i) => (\n        <span key={i} className=\"relative h-9 w-9 overflow-hidden rounded-lg border-2\" style={{ borderColor: p.card, background: p.thumb, zIndex: 3 - i }}>\n          {l.image ? (\n            // eslint-disable-next-line @next/next/no-img-element\n            <img src={l.image} alt=\"\" className=\"h-full w-full object-cover\" />\n          ) : null}\n        </span>\n      ))}\n    </span>\n  );\n\n  return (\n    <section className={cn(\"@container w-full\", className)} style={{ background: p.bg, color: p.text }}>\n      <div className=\"mx-auto max-w-6xl px-4 py-10 @[640px]:px-6 @[640px]:py-14\">\n        <div className=\"overflow-hidden rounded-2xl border\" style={{ background: p.card, borderColor: p.border }}>\n          <div className=\"flex flex-wrap items-center justify-between gap-3 p-5\">\n            <div>\n              <h2 className=\"m-0 text-[18px] font-semibold tracking-[-0.01em]\">{title}</h2>\n              <p className=\"m-0 mt-0.5 text-[13px] tabular-nums\" style={{ color: p.muted }} aria-live=\"polite\">\n                {today.length} orders · {money(revenue)} today\n              </p>\n            </div>\n            <label className=\"relative w-full @[640px]:w-64\">\n              <span className=\"sr-only\">Search orders</span>\n              <svg className=\"pointer-events-none absolute top-1/2 left-3 -translate-y-1/2\" width=\"13\" height=\"13\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" aria-hidden=\"true\" style={{ color: p.faint }}>\n                <circle cx=\"11\" cy=\"11\" r=\"7\" />\n                <path d=\"m20 20-3.5-3.5\" />\n              </svg>\n              <input type=\"search\" value={q} onChange={(e) => setQ(e.target.value)} placeholder=\"Order, customer or product\" className={cn(\"h-9 w-full rounded-lg border pr-3 pl-8 text-[13px]\", focus)} style={{ borderColor: p.border, background: \"transparent\", color: p.text, ...ring }} />\n            </label>\n          </div>\n          <div role=\"tablist\" aria-label=\"Order status\" className=\"flex gap-1 overflow-x-auto border-b px-4\" style={{ borderColor: p.border }}>\n            {(\n              [\n                [\"all\", \"All\"],\n                [\"unfulfilled\", \"To fulfill\"],\n                [\"unpaid\", \"Unpaid\"],\n                [\"shipped\", \"Shipped\"],\n              ] as [Tab, string][]\n            ).map(([id, label]) => (\n              <button key={id} type=\"button\" role=\"tab\" aria-selected={tab === id} onClick={() => setTab(id)} className={cn(\"relative shrink-0 cursor-pointer border-0 bg-transparent px-2.5 pt-1 pb-2.5 text-[13px]\", focus)} style={{ color: tab === id ? p.text : p.muted, ...ring }}>\n                {label} <span className=\"tabular-nums\" style={{ color: id === \"unfulfilled\" && list.filter(match.unfulfilled).length ? p.amber : p.faint }}>{list.filter(match[id]).length}</span>\n                {tab === id && <motion.span layoutId={`${uid}-tab`} className=\"absolute inset-x-1.5 -bottom-px h-[2px] rounded-full\" style={{ background: p.on }} transition={reduce ? { duration: 0 } : { type: \"spring\", stiffness: 500, damping: 38 }} />}\n              </button>\n            ))}\n          </div>\n\n          <div className=\"hidden grid-cols-[110px_minmax(0,1.4fr)_120px_150px_150px_110px_40px] gap-3 px-5 py-2.5 text-[12px] @[880px]:grid\" style={{ color: p.faint, background: p.row }} aria-hidden=\"true\">\n            <span>Order</span>\n            <span>Customer</span>\n            <span>Items</span>\n            <span>Payment</span>\n            <span>Fulfillment</span>\n            <span className=\"text-right\">Total</span>\n            <span />\n          </div>\n          <ul className=\"m-0 list-none p-0\" aria-label=\"Orders\">\n            <AnimatePresence initial={false}>\n              {rows.map((o) => {\n                const isOpen = open === o.id;\n                const refunded = o.payment === \"refunded\";\n                return (\n                  <motion.li key={o.id} layout={!reduce} initial={reduce ? false : { opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={reduce ? undefined : { opacity: 0, height: 0 }} transition={{ duration: 0.3 }} className=\"overflow-hidden border-t\" style={{ borderColor: p.border }}>\n                    <motion.div initial={fresh.includes(o.id) && !reduce ? { backgroundColor: p.fresh } : false} animate={{ backgroundColor: p.clear }} transition={{ duration: 2.4 }}>\n                      <button type=\"button\" aria-expanded={isOpen} aria-controls={`${uid}-${o.id}`} onClick={() => setOpen(isOpen ? null : o.id)} className={cn(\"grid w-full cursor-pointer grid-cols-[1fr_auto] items-center gap-x-3 gap-y-2 border-0 bg-transparent px-5 py-3.5 text-left @[880px]:grid-cols-[110px_minmax(0,1.4fr)_120px_150px_150px_110px_40px]\", focus, \"focus-visible:ring-inset\")} style={{ color: p.text, ...ring }}>\n                        <span className=\"flex items-center gap-2 @[880px]:block\">\n                          <span className=\"font-mono text-[13px] font-medium\">{o.number}</span>\n                          {fresh.includes(o.id) && (\n                            <span className=\"rounded-full px-1.5 text-[10.5px] font-semibold @[880px]:ml-1.5\" style={{ background: p.fresh, color: p.green }}>\n                              New\n                            </span>\n                          )}\n                          <span className=\"block text-[11.5px] @[880px]:mt-0.5\" style={{ color: p.faint }}>\n                            <time dateTime={o.placed}>{rel(o.placed, now)}</time>\n                          </span>\n                        </span>\n                        <span className=\"order-3 col-span-2 min-w-0 @[880px]:order-none @[880px]:col-span-1\">\n                          <span className=\"block truncate text-[13.5px] font-medium\">{o.customer}</span>\n                          <span className=\"block truncate text-[12px]\" style={{ color: p.faint }}>\n                            {o.channel}\n                          </span>\n                        </span>\n                        <span className=\"order-2 flex items-center gap-2 justify-self-end @[880px]:order-none @[880px]:justify-self-start\">\n                          {thumbs(o)}\n                          {o.lines.length > 1 && (\n                            <span className=\"text-[12px] tabular-nums\" style={{ color: p.faint }}>\n                              {o.lines.reduce((s, l) => s + l.qty, 0)}\n                            </span>\n                          )}\n                        </span>\n                        <span className=\"order-4 @[880px]:order-none\">{payPill(o.payment)}</span>\n                        <span className=\"order-5 justify-self-end @[880px]:order-none @[880px]:justify-self-start\">{tracker(o.fulfillment, refunded)}</span>\n                        <span className=\"order-6 text-[14px] font-semibold tabular-nums @[880px]:order-none @[880px]:text-right\" style={{ textDecoration: refunded ? \"line-through\" : undefined, color: refunded ? p.faint : p.text }}>\n                          {money(total(o))}\n                        </span>\n                        <motion.svg width=\"14\" height=\"14\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" className=\"order-7 justify-self-end\" style={{ color: p.faint }} animate={{ rotate: isOpen ? 180 : 0 }} aria-hidden=\"true\">\n                          <path d=\"m4 6 4 4 4-4\" />\n                        </motion.svg>\n                      </button>\n                    </motion.div>\n                    <AnimatePresence initial={false}>\n                      {isOpen && (\n                        <motion.div id={`${uid}-${o.id}`} initial={reduce ? false : { height: 0, opacity: 0 }} animate={{ height: \"auto\", opacity: 1 }} exit={reduce ? undefined : { height: 0, opacity: 0 }} transition={{ duration: 0.25 }} className=\"overflow-hidden\" style={{ background: p.row }}>\n                          <div className=\"grid gap-5 px-5 pt-2 pb-5 @[720px]:grid-cols-[minmax(0,1fr)_280px]\">\n                            <div>\n                              <ul className=\"m-0 list-none p-0\">\n                                {o.lines.map((l, i) => (\n                                  <li key={i} className=\"flex items-center gap-3 py-2\">\n                                    <span className=\"h-11 w-11 shrink-0 overflow-hidden rounded-lg\" style={{ background: p.thumb }}>\n                                      {l.image ? (\n                                        // eslint-disable-next-line @next/next/no-img-element\n                                        <img src={l.image} alt=\"\" className=\"h-full w-full object-cover\" />\n                                      ) : null}\n                                    </span>\n                                    <span className=\"min-w-0 flex-1\">\n                                      <span className=\"block truncate text-[13.5px]\">{l.name}</span>\n                                      <span className=\"block text-[12px] tabular-nums\" style={{ color: p.faint }}>\n                                        {l.qty} × {money(l.price)}\n                                      </span>\n                                    </span>\n                                    <span className=\"text-[13.5px] tabular-nums\">{money(l.qty * l.price)}</span>\n                                  </li>\n                                ))}\n                              </ul>\n                              <dl className=\"m-0 mt-2 grid grid-cols-[1fr_auto] gap-y-1 border-t pt-3 text-[13px] tabular-nums\" style={{ borderColor: p.border }}>\n                                <dt style={{ color: p.muted }}>Shipping</dt>\n                                <dd className=\"m-0 text-right\">{o.shipping ? money(o.shipping) : \"Free\"}</dd>\n                                <dt className=\"font-semibold\">Total</dt>\n                                <dd className=\"m-0 text-right font-semibold\">{money(total(o))}</dd>\n                              </dl>\n                            </div>\n                            <div className=\"rounded-xl border p-4\" style={{ borderColor: p.border, background: p.card }}>\n                              <p className=\"m-0 text-[13px] font-medium\">{o.customer}</p>\n                              <p className=\"m-0 text-[12px]\" style={{ color: p.faint }}>\n                                {o.email}\n                              </p>\n                              <ol className=\"m-0 mt-4 flex list-none flex-col gap-2.5 p-0\">\n                                {STEPS.map((s, i) => {\n                                  const done = !refunded && STEPS.indexOf(o.fulfillment) >= i;\n                                  return (\n                                    <li key={s} className=\"flex items-center gap-2.5 text-[12.5px]\" style={{ color: done ? p.text : p.faint }}>\n                                      <motion.span className=\"flex h-4 w-4 items-center justify-center rounded-full border\" initial={false} animate={{ background: done ? p.green : \"rgba(0,0,0,0)\", borderColor: done ? p.green : p.border }} aria-hidden=\"true\">\n                                        {done && (\n                                          <svg width=\"9\" height=\"9\" viewBox=\"0 0 16 16\" fill=\"none\" stroke={p.onText} strokeWidth=\"3\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n                                            <path d=\"m3 8.5 3 3 7-7\" />\n                                          </svg>\n                                        )}\n                                      </motion.span>\n                                      {STEP_LABEL[s]}\n                                      {s === \"shipped\" && done && o.carrier && (\n                                        <span className=\"ml-auto truncate font-mono text-[11px]\" style={{ color: p.faint }}>\n                                          {o.carrier}\n                                        </span>\n                                      )}\n                                      <span className=\"sr-only\">{done ? \", done\" : \"\"}</span>\n                                    </li>\n                                  );\n                                })}\n                              </ol>\n                              {!refunded && NEXT_LABEL[o.fulfillment] && (\n                                <button type=\"button\" onClick={() => advance(o)} disabled={o.payment === \"pending\" && o.fulfillment === \"packed\"} className={cn(\"mt-4 h-9 w-full cursor-pointer rounded-lg border-0 text-[13px] font-medium disabled:cursor-not-allowed disabled:opacity-40\", focus)} style={{ background: p.on, color: p.onText, ...ring }}>\n                                  {NEXT_LABEL[o.fulfillment]}\n                                </button>\n                              )}\n                              {o.payment === \"pending\" && (\n                                <p className=\"m-0 mt-2 text-[11.5px]\" style={{ color: p.amber }}>\n                                  Waiting for payment before shipping.\n                                </p>\n                              )}\n                            </div>\n                          </div>\n                        </motion.div>\n                      )}\n                    </AnimatePresence>\n                  </motion.li>\n                );\n              })}\n            </AnimatePresence>\n          </ul>\n          {rows.length === 0 && (\n            <p className=\"m-0 border-t px-5 py-12 text-center text-[14px]\" style={{ borderColor: p.border, color: p.muted }}>\n              No orders here.\n            </p>\n          )}\n        </div>\n      </div>\n    </section>\n  );\n}\n\nexport default RecentOrdersTable;\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}