import { ColumnDef } from "@tanstack/react-table" import { DataTableColumnHeader } from "@marzneshin/features/entity-table" import i18n from "@marzneshin/features/i18n" import { UserType, UserActivatedPill, UserEnabledPill, UserExpirationValue, userTrafficSortingFn, } from "@marzneshin/features/users" import { CircularProgress } from "@nextui-org/progress"; import { Badge } from "@marzneshin/components"; export const columns: ColumnDef[] = [ { accessorKey: "username", header: ({ column }) => , }, { accessorKey: "activated", header: ({ column }) => ( ), cell: ({ row }) => , }, { accessorKey: "enabled", header: ({ column }) => ( ), cell: ({ row }) => , }, { accessorKey: "used_traffic", header: ({ column }) => , cell: ({ row }) => { if (row.original.data_limit) { return ( ) } else { return No Limit } }, sortingFn: (rowA, rowB) => userTrafficSortingFn(rowA.original, rowB.original) }, { accessorKey: "expire", header: ({ column }) => ( ), cell: ({ row }) => , }, ];