import { ArrowDownToLine, ArrowUpFromLine, Waves } from 'lucide-react'; import { TRANSMISSION_SECTIONS } from './shared'; import { formatSpeed } from './format'; import { useTransmissionSection } from './useTransmissionSection'; import { useSession, useSessionStats } from './useTransmissionData'; // Panel header for the right (transmission-view) panel: which section, which daemon version, and the live // totals — the one number you want visible no matter which section you are looking at. export const TransmissionViewHeader = () => { const section = useTransmissionSection(); const { stats } = useSessionStats(); const { session } = useSession(); const label = TRANSMISSION_SECTIONS.find((s) => s.id === section)?.label ?? 'Transmission'; return ( <> {label} {session?.version && · {session.version}} {stats && ( {formatSpeed(stats.downloadSpeed) || '0'} {formatSpeed(stats.uploadSpeed) || '0'} )} ); };