// types import { IUserStateDistribution } from "@plane/types"; import { STATE_GROUPS } from "@/constants/state"; // constants type Props = { stateDistribution: IUserStateDistribution[]; }; export const ProfileWorkload: React.FC = ({ stateDistribution }) => (

Workload

{stateDistribution.map((group) => (

{group.state_group === "unstarted" ? "Not started" : group.state_group === "started" ? "Working on" : STATE_GROUPS[group.state_group].label}

{group.state_count}

))}
);