import { formatBytes } from "../helper/formatBytes"; import { formatSecondsToTime } from "../helper/formatSecondsToTime"; import { useStatsStore } from "../stores/statsStore"; export const Footer: React.FC<{}> = () => { let stats = useStatsStore((stats) => stats.stats); return (
↓ {stats.download_speed.human_readable} (total{" "} {formatBytes(stats.fetched_bytes)})
↑ {stats.upload_speed.human_readable} (total{" "} {formatBytes(stats.uploaded_bytes)})
up {formatSecondsToTime(stats.uptime_seconds)}
); };