"use client";
import { useCallback, useEffect, useState } from "react";
import { useRouter } from "next/navigation";
import { useDisplay } from "yt-dlp-transcript-common/components/PrivacyProvider";
import { Button } from "@/components/ui/button";
import { Field, Input } from "@/components/ui/field";
import LinkPolicyPanel from "../report/LinkPolicyPanel";
import { InspectorFrame, SaidLine, announceManifestChanged, call, refusal, useOnManifestChanged, type InspectorProps, type Said } from "./shared";
// THE PROJECT'S PROVENANCE (umtool redesign L6, item 1; the owed provenance writer): where the cut's QRs open
// (provenance.siteOrigin), the channel a clip with no `channel` of its own is from (provenance.channelSlug --
// `check` blocks without it), the sweep's display name (provenance.channel); and, under them, the link policy per
// channel (LinkPolicyPanel, its own writer). PUT /api/report/provenance; `umtool provenance