"use client"; import { StreamActionLog } from "yt-dlp-transcript-common/components/StreamActionLog"; import { cancelJobAction } from "../../../../../jobs/actions"; import { frameScanAction } from "../frameScanActions"; // The Scan button: one frame-scan job for this video (settings.generation's // `frames` route and cap). Again after a scan, it resumes: frames already // read are not asked again. export function FrameScanControl({ slug, videoId, profile, scanned }: { slug: string; videoId: string; profile: string; scanned: boolean }) { return ( frameScanAction(slug, videoId, profile)} cancelAction={cancelJobAction} buttonLabel={scanned ? "Scan again" : "Scan frames"} runningLabel="Scanning frames…" label={`Scan frames of ${videoId}`} /> ); }