import { ChangeRequestState } from './changeRequest.types'; import { Badge } from 'component/common/Badge/Badge'; import { Check, CircleOutlined, Close } from '@mui/icons-material'; export const resolveChangeRequestStatusIcon = (state: ChangeRequestState) => { const reviewRequired = ( }> Review required ); switch (state) { case 'Draft': return reviewRequired; case 'In review': return reviewRequired; case 'Approved': return ( }> Approved ); case 'Applied': return ( }> Applied ); case 'Cancelled': return ( } > Cancelled ); default: return reviewRequired; } };