import { type RefObject, useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; import { X } from "lucide-react"; import type { HlsEngine } from "../lib/hlsEngine"; import { buildStatRows, type FragMeter, type StatRow } from "../lib/plexStats"; import { IconButton } from "./ui/IconButton"; // "Stats for nerds" debug overlay. Samples the live HTML5