feat(frontend): wire Vite app to FastAPI parser with NDJSON streaming + Upload page
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { useCountUp } from "@/hooks/useCountUp";
|
||||
|
||||
interface AnimatedNumberProps {
|
||||
value: number;
|
||||
format: (n: number) => string;
|
||||
duration?: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function AnimatedNumber({
|
||||
value,
|
||||
format,
|
||||
duration,
|
||||
className,
|
||||
}: AnimatedNumberProps) {
|
||||
const n = useCountUp(value, duration);
|
||||
return <span className={className}>{format(n)}</span>;
|
||||
}
|
||||
Reference in New Issue
Block a user