"use client"; import { useState } from "react"; import { ArrowLeftRight, ArrowUpRight } from "lucide-react"; import { NumberRoll } from "@/components/assistant-ui/number-roll"; type Mode = { value: number; caption: string }; export function WeeklyDownloadsStat({ flagship, total, }: { flagship: Mode; total: Mode; }) { const [showTotal, setShowTotal] = useState(false); const current = showTotal ? total : flagship; return (