import { Power, RefreshCw } from "lucide-react" import { useServiceAction, useSetEnabled } from "@/services/api/hooks" interface ServiceControlsProps { name: string enabled: boolean } // Lifecycle is convergence: the Power toggle sets desired on/off state and applies // (activate/deactivate); Restart is the one imperative bounce. No raw start/stop. export function ServiceControls({ name, enabled }: ServiceControlsProps) { const restart = useServiceAction() const setEnabled = useSetEnabled() const busy = restart.isPending || setEnabled.isPending return (