"use client"; import { DataTable } from "@/components/admin/data-table"; import { formatTimestamp } from "@/lib/admin-helpers"; import type { DataTableColumn, PaginatedResult } from "@/types"; interface CommandLogRow { id: number; username: string; command: string; params: string; timestamp: number; } const columns: DataTableColumn[] = [ { key: "id", label: "ID", sortable: true }, { key: "username", label: "User" }, { key: "command", label: "Command", sortable: true }, { key: "params", label: "Params", render: (value) => ( {String(value) || "-"} ), }, { key: "timestamp", label: "Time", sortable: true, render: (value) => {formatTimestamp(Number(value))}, }, ]; interface CommandsTableProps { data: PaginatedResult; } export function CommandsTable({ data }: CommandsTableProps) { return ( ); }