import { useTranslation } from "react-i18next"; import { Check } from "lucide-react"; import type { ManagedChannel } from "../lib/api"; import { formatNumber } from "../lib/format"; import Tooltip from "./ui/Tooltip"; import { isFullySynced } from "./channelSync"; // The Channels-manager cells that are components in their own right (they read i18n), split out of // channelColumns so that file holds only the column factory and its predicates (Fast Refresh). // The Stored count, with a "fully synced" ✓ charm to the left of the number when recent uploads and // full history are both in — folding the retired Sync column's at-a-glance status into the value it // describes. Full detail stays in the hover tooltip. export function StoredCell({ c }: { c: ManagedChannel }) { const { t, i18n } = useTranslation(); const lang = i18n.language; return ( {isFullySynced(c) && ( )} {formatNumber(c.stored_videos, lang)} ); }