import { useParams } from "react-router-dom" import { Clock } from "lucide-react" import { useJob, useStatus, useEventStream } from "@/services/api/hooks" import { LogViewer } from "@/components/LogViewer" import { DetailHeader } from "@/components/detail/DetailHeader" import { ServiceControls } from "@/components/detail/ServiceControls" import { SystemdPanel } from "@/components/detail/SystemdPanel" import { ConfigPanel } from "@/components/detail/ConfigPanel" export function ScheduledDetailPage() { useEventStream() const { name } = useParams<{ name: string }>() const { data: deployment, isLoading, error, refetch } = useJob(name ?? "") const { data: statusResp } = useStatus() const health = statusResp?.statuses.find((s) => s.id === name) if (isLoading) { return (
Scheduled job not found