// icons import { PlayIcon } from "@heroicons/react/24/outline"; // types import { IDefaultAnalyticsResponse } from "types"; // constants import { STATE_GROUP_COLORS } from "constants/state"; type Props = { defaultAnalytics: IDefaultAnalyticsResponse; }; export const AnalyticsDemand: React.FC = ({ defaultAnalytics }) => (
DEMAND

Total open tasks

{defaultAnalytics.open_issues}

{defaultAnalytics.open_issues_classified.map((group) => { const percentage = ((group.state_count / defaultAnalytics.total_issues) * 100).toFixed(0); return (
{group.state_group}
{group.state_count}

{percentage}%

); })}

{defaultAnalytics.open_estimate_sum}/{defaultAnalytics.total_estimate_sum}

);