'use client'; import { Download, Eye, MoreHorizontal, Pencil, Play, Trash2, } from 'lucide-react'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, } from '@/components/ui/dropdown-menu'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '@/components/ui/table'; import type { WAFIPGroup } from '@/lib/services/openflare'; import { formatDateTime } from '@/lib/utils'; import { ipGroupTypeLabels } from './helpers'; interface IPGroupsTableProps { groups: WAFIPGroup[]; syncingId: number | null; onView: (group: WAFIPGroup) => void; onEdit: (group: WAFIPGroup) => void; onDelete: (group: WAFIPGroup) => void; onSync: (group: WAFIPGroup) => void; onTest: (group: WAFIPGroup) => void; } export function IPGroupsTable({ groups, syncingId, onView, onEdit, onDelete, onSync, onTest, }: IPGroupsTableProps) { return (