// icons import { Triangle } from "lucide-react"; // types import { IDefaultAnalyticsResponse, TStateGroups } 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}%

); })}

Estimate demand:

{defaultAnalytics.open_estimate_sum}/{defaultAnalytics.total_estimate_sum}

);