// icons import { Triangle } from "lucide-react"; // types import { STATE_GROUPS } from "constants/state"; import { IDefaultAnalyticsResponse, TStateGroups } from "@plane/types"; // constants 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}

);