import React from "react"; import { CircularProgressbar } from "react-circular-progressbar"; type TSingleProgressStatsProps = { title: any; completed: number; total: number; }; const SingleProgressStats: React.FC = ({ title, completed, total }) => ( <>
{title}
{Math.floor((completed / total) * 100)}%
of {total}
); export default SingleProgressStats;