// types import { IUserStateDistribution } from "types"; // constants import { STATE_GROUP_COLORS } 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" : group.state_group}

{group.state_count}

))}
);