20 lines
433 B
TypeScript
20 lines
433 B
TypeScript
|
|
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} />;
|
||
|
|
}
|