link-stack/apps/bridge-frontend/app/(main)/facebook/[[...segment]]/@detail/page.tsx

20 lines
433 B
TypeScript
Raw Normal View History

2024-04-24 21:44:05 +02:00
import { db } from "@/app/_lib/database";
import { Detail } from "./_components/Detail";
export const dynamic = "force-dynamic";
type Props = {
params: { segment: string[] };
};
export default async function Page({ params: { segment } }: Props) {
const id = segment[0];
const row = await db
.selectFrom("FacebookBot")
.selectAll()
.where("id", "=", id)
.executeTakeFirst();
return <Detail row={row} />;
}