--- import { desc } from "drizzle-orm"; import { db } from "db"; import { guestbookTable } from "db/schema"; import formatDate from "@/utils/formatDate"; import pikachu from "$/images/portrait-0025.png"; const entries = await db.select().from(guestbookTable).orderBy(desc(guestbookTable.published)); ---
{entries.map(entry => ( <>
avart

{entry.website ? {entry.username} : {entry.username}}

{entry.reply &&
a portrait of pikachu

Reply to {entry.username}

} ))} {entries.length === 0 && (

Huh...

There's nothing here! Want to be the first to comment?

)}