'use client' import { DataTable } from '@/components/admin/data-table' import { formatTimestamp } from '@/lib/admin-helpers' import type { DataTableColumn, PaginatedResult } from '@/types' interface ChatLogRow { id: number username: string message: string timestamp: number roomId: number } const columns: DataTableColumn[] = [ { key: 'id', label: 'ID', sortable: true }, { key: 'username', label: 'User' }, { key: 'message', label: 'Message', render: (value) => {String(value)}, }, { key: 'timestamp', label: 'Time', sortable: true, render: (value) => {formatTimestamp(Number(value))}, }, { key: 'roomId', label: 'Room ID', sortable: true }, ] interface ChatTableProps { data: PaginatedResult } export function ChatTable({ data }: ChatTableProps) { return ( ) }