'use client'; import { Globe2, Pencil, ShieldCheck, Trash2 } from 'lucide-react'; import { useTranslations } from 'next-intl'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '@/components/ui/table'; import type { WAFRule } from '@/lib/services/openflare'; import { formatDateTime } from '@/lib/utils'; interface RuleGroupsTableProps { groups: WAFRule[]; onEdit: (group: WAFRule) => void; onDelete: (group: WAFRule) => void; } export function RuleGroupsTable({ groups, onEdit, onDelete, }: RuleGroupsTableProps) { const t = useTranslations('waf'); return (