import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'; import { Button } from '@/components/ui/button'; import { ColumnDef } from '@tanstack/react-table'; const PayoutsTableColumn = (translate: LanguageTranslations): ColumnDef[] => { const { table } = translate; return [ { accessorKey: 'profile', header: () =>
{table.name}
, cell: ({ row }) => (
{row.original.user.name.charAt(0)}

{row.original.user.name}

{row.original.user.email}

), }, { accessorKey: 'amount', header: () =>
{table.payout_amount}
, cell: ({ row }) => (

{row.original.amount}$

), }, { accessorKey: 'status', header: () =>
{table.status}
, cell: ({ row }) =>
{row.getValue('status')}
, }, { id: 'action', header: () =>
{table.action}
, cell: ({ row }) => (
), }, ]; }; export default PayoutsTableColumn;