// types import { IDefaultAnalyticsResponse, TStateGroups } from "@plane/types"; // constants import { STATE_GROUPS } 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}%

); })}
);