import { List } from "./_components/List"; import { db } from "@/app/_lib/database"; import { serviceConfig } from "@/app/_config/config"; type PageProps = { params: { segment: string[]; }; }; export default async function Page({ params: { segment } }: PageProps) { const service = segment[0]; if (!service) return null; const config = serviceConfig[service]; if (!config) return null; const rows = await db.selectFrom(config.table).selectAll().execute(); return ; }