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 { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui"; import { Button } from "@/components/ui"; import { X } from "lucide-react"; import { YamlEditor } from "./YamlEditor"; interface DeploymentDetailProps { deploymentName: string; namespace: string; _clusterId: string; onClose: () => void; } export function DeploymentDetail({ deploymentName, namespace, _clusterId, onClose }: DeploymentDetailProps) { const [activeTab, setActiveTab] = React.useState("overview"); return (

Deployment: {deploymentName}

{namespace}
Overview Replicas YAML Events
Deployment Information
Name {deploymentName}
Namespace {namespace}
Replicas 3/3 Ready
Strategy RollingUpdate
Image nginx:latest
Created 2 hours ago
Selector
app=web tier=frontend
Labels
app=web tier=frontend version=v1
Name Status Ready Age {deploymentName}-abc123 Running 1/1 2h {deploymentName}-def456 Running 1/1 2h {deploymentName}-ghi789 Running 1/1 2h
{}} /> Time Reason Type Message 2 hours ago ScalingReplicaSet Normal Scaled up replica set {deploymentName}-abc123 to 3
); }