import { ColumnDef } from "@tanstack/react-table" import { NodesStatusBadge, NodeType, NodesStatus } from "@marzneshin/features/nodes" import { DataTableColumnHeader } from "@marzneshin/components/data-table/column-header" import i18n from "@marzneshin/features/i18n" import { DataTableActionsCell } from "@marzneshin/components" interface ColumnAction { onDelete: (node: NodeType) => void; onOpen: (node: NodeType) => void; onEdit: (node: NodeType) => void; } export const columns = (actions: ColumnAction): ColumnDef[] => ([ { accessorKey: "name", header: ({ column }) => , }, { accessorKey: "status", header: ({ column }) => , cell: ({ row }) => , }, { accessorKey: "address", header: ({ column }) => , cell: ({ row }) => `${row.original.address}:${row.original.port}` }, { accessorKey: "usage_coefficient", header: ({ column }) => , }, { id: "actions", cell: ({ row }) => }, ]);