Files
Epicnabbo-Catalogus-Updated…/src/app/admin/logs/chat/page.tsx
T
openhands 51ef7602ca perf: migrate pages to Cache Components via root layout opt-out
Remove the per-route 'export const instant = false' opt-outs now that the root layout carries the single Cache Components opt-out. Child pages inherit the opt-out, so admin/mod/radio leaf pages that only access cached or DB data stay instant while runtime-dependent pages remain dynamic. Update the staff-smoke contract test to assert the root-layout contract.
2026-08-07 18:51:45 +02:00

26 lines
568 B
TypeScript

import { loadChatLogList } from "../_lib/load-ignored-logs";
import { ChatTable } from "./chat-table";
export default async function ChatLogsPage({
searchParams,
}: {
params: Promise<{ locale: string }>;
searchParams: Promise<Record<string, string>>;
}) {
const result = await loadChatLogList({ searchParams, defaultPerPage: 50 });
return (
<div className="space-y-6">
<ChatTable
data={{
rows: result.rows,
total: result.total,
page: result.page,
perPage: result.perPage,
lastPage: result.lastPage,
}}
/>
</div>
);
}