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

{excluded ? "This video is excluded from the truncated-transcript check. It won't be flagged as incomplete/short even when its transcript covers only part of the runtime. Reversible at any time." : "Exclude this video from the truncated-transcript check — useful when the back half legitimately has no speech (so low coverage is expected, not a broken download). Reversible at any time."}

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