import React from "react"; import { Server } from "lucide-react"; import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui"; import { Badge } from "@/components/ui"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui"; interface ContextSwitcherProps { clusters: { id: string; name: string; context: string; cluster_url?: string }[]; selectedClusterId: string; onClusterChange: (clusterId: string) => void; } export function ContextSwitcher({ clusters, selectedClusterId, onClusterChange }: ContextSwitcherProps) { const selectedCluster = clusters.find((c) => c.id === selectedClusterId); return ( Context Switcher
{selectedCluster && (
Context {selectedCluster.context}
{selectedCluster.cluster_url && (
Cluster URL {selectedCluster.cluster_url}
)}
)}
); }