import { Chip } from "@mui/material"; import { errorRed, primaryBlue, successGreen } from "../../consts/colors"; type StatusChipProps = { status: string; isUppercase?: boolean; bgColor?: string; }; const bgColorMap: Record = { "In Progress": successGreen.c100, Ratified: successGreen.c100, Enacted: successGreen.c100, Expired: errorRed.c100, "Not Ratified": primaryBlue.c100, }; function StatusChip({ status, isUppercase, bgColor }: StatusChipProps) { const label = isUppercase ? status.toLocaleUpperCase() : status; return ( ); } export default StatusChip;