import { DateTime } from "@/components/time"; /** For an active whole-shop grant: how many products IMVU lists in the shop, and when the hub last looked. */ export function ShopListing({ grant: g, }: { grant: { scope: string; status: string; shopListedAt: string | null; shopListed: number; shopListedSignedIn: boolean; }; }) { if (g.scope !== "shop" || g.status !== "active") return null; if (!g.shopListedAt) return <> Not checked on IMVU yet.; return ( <> {" "} On IMVU: {g.shopListed} {g.shopListedSignedIn ? "" : "general-rated "}product{g.shopListed === 1 ? "" : "s"}{" "} (checked {g.shopListedSignedIn ? " by the importer, with Access Pass" : ""}). ); }