// types import { IUserStateDistribution } from "@plane/types"; // constants import { STATE_GROUPS } from "constants/state"; 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}

))}
);