// components import { ActivityGraph } from "components/workspace"; // helpers import { groupBy } from "helpers/array.helper"; // types import { IIssue } from "types"; type Props = { issues: IIssue[] | undefined; }; export const IssuesStats: React.FC = ({ issues }) => { const groupedIssues = { backlog: [], unstarted: [], started: [], cancelled: [], completed: [], ...groupBy(issues ?? [], "state_detail.group"), }; return (
{issues ? ( <>

Issues assigned to you

{issues.length}

Pending issues

{issues.length - groupedIssues.completed.length}

Completed issues

{groupedIssues.completed.length}

Issues due by this week

24

Activity Graph

) : null}
); };