import ClientRow from "@/src/components/general/client-row"; import type { BUN_SQLITE_WGUI_CLIENTS, BUN_SQLITE_WGUI_CLIENT_RULES, } from "@/db/types/db"; type Props = { clients: BUN_SQLITE_WGUI_CLIENTS[]; rules_by_client_id: Map; accessLabel?: string; minWidthClass?: string; }; const thClass = "px-4 py-2 text-left text-[11px] font-semibold uppercase tracking-[0.08em] " + "text-foreground-light/40 dark:text-foreground-dark/40 whitespace-nowrap"; const thRightClass = `${thClass} text-right`; export default function ClientsTable({ clients, rules_by_client_id, accessLabel = "Access", minWidthClass = "min-w-[860px]", }: Props) { return (
{clients.map((client) => ( ))}
Client Host Tunnel IP Allowed IPs {accessLabel} Public key Created Actions
); }