import LinearProgress from '@mui/joy/LinearProgress'; import Typography from '@mui/joy/Typography'; import { useCountUp } from 'use-count-up'; export default function LinearProgressCountUp() { const { value } = useCountUp({ isCounting: true, duration: 5, easing: 'linear', start: 0, end: 75, onComplete: () => ({ shouldRepeat: true, delay: 2, }), }); return ( LOADING… {`${Math.round(Number(value!))}%`} ); }