import db from "@/utils/db" import Link from "next/link" export default async function Dataset() { const prompts = await db`SELECT * FROM prompts WHERE selected = true ORDER BY text ASC ` const types = Array.from(new Set(prompts.map((p) => p.type))) return ( <> {types.map((type, k) => (
{type}:
{prompt.text}
results