"use client"; import Link from "next/link"; import { StreamActionLog } from "yt-dlp-transcript-common/components/StreamActionLog"; import { cancelJobAction } from "../../../jobs/actions"; import { startSpaceScanAction } from "../actions"; // Refresh: the space scan as a job (`pnpm ops space-scan`). While one is // queued or running the page names it instead of offering a second. export function SpaceRefresh({ running }: { running: { jobId: string; status: string } | null }) { if (running) { return ( A scan is {running.status}:{" "} its job ); } return ( ); }