import { KeenIcon } from '@/components'; import { Button } from '@/components/ui/button'; import { ColumnDef } from '@tanstack/react-table'; import { ArrowUpDown } from 'lucide-react'; import moment from 'moment'; export type AgentBalance = { id: string, msisdn: string, fullname: string, username: string, agent_name: string, balance_emoney: string, balance_merchant: string, balance_point: string, balance_deposit: string }; export const getColumns = (handleUpdate: (data: any) => void): ColumnDef[] => [ { accessorKey: 'no', header: ({ column }) => { return ( ); } }, { accessorKey: 'msisdn', header: ({ column }) => { return ( ); } }, { accessorKey: 'fullname', header: ({ column }) => { return ( ); } }, { accessorKey: 'username', header: ({ column }) => { return ( ); } }, { accessorKey: 'agent_name', header: ({ column }) => { return ( ); } }, { accessorKey: 'balance_emoney', header: ({ column }) => { return ( ); } }, { accessorKey: 'balance_deposit', header: ({ column }) => { return ( ); } }, { accessorKey: 'balance_merchant', header: ({ column }) => { return ( ); } }, { accessorKey: 'balance_point', header: ({ column }) => { return ( ); } }, { id: 'actions', cell: ({ row }) => { const dataMembers = row.original; return ( ); } } ];