import { ColumnDef } from '@tanstack/react-table'; const PayoutsTableColumn = (translate: LanguageTranslations): ColumnDef[] => { const { table } = translate; return [ { accessorKey: 'payout_amount', header: () =>
{table.payout_amount}
, cell: ({ row }) => (

{row.original.amount}

{new Date(row.original.created_at).toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' })}

), }, { accessorKey: 'status', header: () =>
{table.status}
, cell: ({ row }) =>
{row.getValue('status')}
, }, { accessorKey: 'payout_method', header: () =>
{table.payout_method}
, cell: ({ row }) => (

{row.original.payout_method}

), }, { id: 'processed', header: () =>
{table.processed_date}
, cell: ({ row }) => (
{new Date(row.original.updated_at).toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' })}
), }, ]; }; export default PayoutsTableColumn;