import { fetchAdminList } from "@/lib/admin-list"; import { PERMS } from "@/lib/permissions"; import { CommandsTable } from "./commands-table"; export default async function CommandLogsPage({ params: paramsPromise, searchParams, }: { params: Promise<{ locale: string }>; searchParams: Promise>; }) { const result = await fetchAdminList( { permission: PERMS.LOGS_VIEW, model: "commandLog", searchFields: ["command", "params", "user.username"], defaultPerPage: 50, include: { user: { select: { username: true } } }, mapRow: (l) => ({ id: l.id, username: l.user.username, command: l.command, params: l.params, timestamp: l.timestamp, }), }, paramsPromise, searchParams, ); return (

Command Logs

View in-game command usage

); }