import React from "react"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import { Button } from "@/components/ui"; import type { ConfigMapInfo } from "@/lib/tauriCommands"; interface ConfigMapListProps { configmaps: ConfigMapInfo[]; clusterId: string; namespace: string; } export function ConfigMapList({ configmaps }: ConfigMapListProps) { return (
Name Namespace Data Keys Age Actions {configmaps.length === 0 ? ( No configmaps found ) : ( configmaps.map((configmap) => ( {configmap.name} {configmap.namespace} {configmap.data_keys} {configmap.age} )) )}
); }