import React from "react"; import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui"; import { Badge } from "@/components/ui"; import { Tabs, TabsList, TabsTrigger, TabsContent } from "@/components/ui"; import { Button } from "@/components/ui"; import { X } from "lucide-react"; import { YamlEditor } from "./YamlEditor"; interface ConfigMapDetailProps { configMapName: string; namespace: string; _clusterId: string; onClose: () => void; } export function ConfigMapDetail({ configMapName, namespace, _clusterId, onClose }: ConfigMapDetailProps) { const [activeTab, setActiveTab] = React.useState("data"); return (

ConfigMap: {configMapName}

{namespace}
Data YAML Metadata
ConfigMap Data
config.json:
{`{
  "debug": true,
  "logLevel": "info"
}`}
app.properties:
{`app.name=MyApp
app.version=1.0.0
app.port=8080`}
{}} />
Metadata
Name {configMapName}
Namespace {namespace}
UID abc123-def456
Created 2 hours ago
Labels
app=web tier=frontend
); }