/** * rAuctions module — community auctions with USDC bidding. * * Embeds the standalone rauctions.online Next.js app via externalApp iframe. * Provides a hub page listing active auctions proxied from the rauctions API. */ import { Hono } from "hono"; import { renderShell, renderExternalAppShell } from "../../server/shell"; import { getModuleInfoList } from "../../shared/module"; import type { RSpaceModule } from "../../shared/module"; import { renderLanding } from "./landing"; const RAUCTIONS_URL = process.env.RAUCTIONS_URL || "https://rauctions.online"; const routes = new Hono(); // ── Page route ── routes.get("/", (c) => { const spaceSlug = c.req.param("space") || "demo"; const view = c.req.query("view"); if (view === "app") { return c.html(renderExternalAppShell({ title: `${spaceSlug} — Auctions | rSpace`, moduleId: "rauctions", spaceSlug, modules: getModuleInfoList(), appUrl: RAUCTIONS_URL, appName: "rAuctions", theme: "dark", })); } return c.html(renderShell({ title: `${spaceSlug} — Auctions | rSpace`, moduleId: "rauctions", spaceSlug, modules: getModuleInfoList(), theme: "dark", body: `