"use client"; // Hub /ask only: one line under the page's header saying what the chat // searches — how many of the hub's archives are in scope, the rest switched off // with the front page's chips (ASK_SCOPE_LINE, the operator's copy). Nothing // until the hub's list is in (the count would move), and nothing with none in // scope: the composer's blocked line says that. import { useSearchData } from "yt-dlp-transcript-common/components/SearchDataContext"; import { ASK_SCOPE_LINE } from "./hubScopeCopy"; import { LinkedCopy } from "./LinkedCopy"; export default function AskScope() { const { federation } = useSearchData(); if (!federation?.listed) return null; const total = federation.sites.length; const inScope = federation.sites.filter((s) => s.status !== "off").length; if (inScope === 0) return null; const line = ASK_SCOPE_LINE(inScope, total); if (!line) return null; return (