import type { Metadata } from "next"; import { notFound } from "next/navigation"; import { ActionForm, SubmitButton } from "@/components/forms"; import { PageHeader, Tag } from "@/components/status"; import { DateTime } from "@/components/time"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Field, FieldDescription, FieldLabel } from "@/components/ui/field"; import { Input } from "@/components/ui/input"; import { NativeSelect, NativeSelectOption } from "@/components/ui/native-select"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { Textarea } from "@/components/ui/textarea"; import { api, unwrap } from "@/lib/api"; import { ConsoleNav, requireConsole } from "../console-nav"; import { changeRecorded, grantProof, recordGrant } from "./actions"; export const metadata: Metadata = { title: "Imports" }; type Recorded = Awaited>["grants"][number]; const load = async () => unwrap(await api.console.imports.get()); const statusTone = { pending: "strong", active: "online", declined: "neutral", suspended: "danger", withdrawn: "neutral", } as const; const imvuShop = (id: number) => `https://www.imvu.com/shop/web_search.php?manufacturers_id=${id}`; export default async function ConsoleImports() { const { console: c } = await requireConsole("/console/imports"); if (!c.sections.includes("imports")) notFound(); const data = await load(); const open = data.grants.filter((g) => g.status !== "withdrawn" && g.status !== "declined"); const ended = data.grants.filter((g) => g.status === "withdrawn" || g.status === "declined"); return ( <> Consent recorded for IMVU creators who won't make an account, and the creators people ask for most.
Record a Creator's Consent For creators who agreed to have their IMVU products on T5DE but won't make an account. Their products belong to a placeholder until they join and link that IMVU account, when they can claim them. The catalog's team still accepts it. {data.catalogs.length === 0 ? (

No catalog takes imports yet.

) : (
IMVU creator Catalog {data.catalogs.map((k) => ( {k.name} ))}
What they agreed to
Leave out (whole shop)