2025-11-17 12:15:20 +01:00

38 lines
1.2 KiB
TypeScript

import { GridColDef } from "@mui/x-data-grid";
import { ISearchLabel } from "./types";
export const TABLE_COLUMNS: GridColDef[] = [
{ field: "userId", headerName: "User ID", width: 130 },
{ field: "transactionId", headerName: "Transaction ID", width: 180 },
{ field: "type", headerName: "Type", width: 120 },
{ field: "currency", headerName: "Currency", width: 100 },
{ field: "amount", headerName: "Amount", width: 120 },
{ field: "status", headerName: "Status", width: 120 },
{ field: "dateTime", headerName: "Date / Time", width: 180 },
];
export const TABLE_SEARCH_LABELS: ISearchLabel[] = [
{ label: "User", field: "Customer", type: "text" },
{ label: "Transaction ID", field: "ExternalID", type: "text" },
{
label: "Type",
field: "Type",
type: "select",
options: ["deposit", "withdrawal"],
},
{
label: "Currency",
field: "Currency",
type: "select",
options: ["USD", "EUR", "GBP", "TRY"],
},
{
label: "Status",
field: "Status",
type: "select",
options: ["pending", "completed", "failed"],
},
{ label: "Amount", field: "Amount", type: "text" },
{ label: "Date / Time", field: "created", type: "date" },
];