import type { Metadata } from "next"; import Link from "next/link"; import { redirect } from "next/navigation"; import { ActionForm, SubmitButton } from "@/components/forms"; import { Empty, ProductCard } from "@/components/products"; import { PageHeader } from "@/components/status"; import { api, getMe, unwrap } from "@/lib/api"; import { libraryAction } from "../products/actions"; export const metadata: Metadata = { title: "Library" }; export default async function Library() { const me = await getMe(); if (!me) redirect("/signin?next=/library"); const { library } = await api.library.get().then(unwrap); return ( <> Products your T5DE uses, on all your IMVU accounts. {library.length === 0 ? ( Nothing yet.{" "} Browse products . ) : ( )} ); }