import React from "react"; import { Button } from "@/components/ui"; import { Settings, Bell, User, Search, Plus, RefreshCw } from "lucide-react"; import { Badge } from "@/components/ui"; import { useKubernetesStore } from "@/stores/kubernetesStore"; import { useStore } from "zustand"; interface HotbarProps { onRefresh: () => void; onAddResource: () => void; onSettings: () => void; } export function Hotbar({ onRefresh, onAddResource, onSettings }: HotbarProps) { const clusters = useStore(useKubernetesStore, (state) => state.clusters); const selectedClusterId = useStore(useKubernetesStore, (state) => state.selectedClusterId); const selectedCluster = clusters.find((c: { id: string }) => c.id === selectedClusterId); return (
{selectedCluster?.name || "No cluster selected"}
); }