All checks were successful
Vercel Production Deployment / Deploy-Production (push) Successful in 1m24s
14 lines
339 B
TypeScript
14 lines
339 B
TypeScript
import { db } from "~/server/db";
|
|
|
|
export default async function AllCountries() {
|
|
const countries = await db.query.countries.findMany();
|
|
return (
|
|
<div className="pt-4">
|
|
<h1 className="text-2xl">All Countries:</h1>
|
|
{countries.map((country) => (
|
|
<p key={country.id}>{country.name}</p>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|