"use client"; import { useState, useTransition } from "react"; import { toggleDoNotCleanAction, } from "../../videoActions"; export function DoNotCleanSection({ slug, videoId, doNotClean, }: { slug: string; videoId: string; doNotClean: boolean; }) { const [pending, startTransition] = useTransition(); const [error, setError] = useState(null); const next = !doNotClean; return (

{doNotClean ? "This video is marked “do not clean”. The transcribed-audio and extra-format cleanup jobs will skip it, so its media is preserved for archiving. Reversible — allow cleanup to remove the marker." : "Mark this video “do not clean” so the cleanup jobs never delete its audio (e.g. a deleted or members-only upload you want to keep). Reversible at any time."}

{error && ( {error} )}
); }