import React from "react"; import { CircularProgressIndicator } from "@plane/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.round((completed / total) * 100)) ? "0" : Math.round((completed / total) * 100)}%
of {total}
);