import React from "react"; import { ProgressBar } from "components/ui"; type TSingleProgressStatsProps = { title: any; completed: number; total: number; onClick?: () => void; selected?: boolean; }; export const SingleProgressStats: React.FC = ({ title, completed, total, onClick, selected = false, }) => (
{title}
{isNaN(Math.floor((completed / total) * 100)) ? "0" : Math.floor((completed / total) * 100)} %
of {total}
);