import React from 'react'; import { CheckCircleOutlined } from '@mui/icons-material'; import { CheckCircle } from '@mui/icons-material'; import { components } from '../../client/apiSchema.generated'; type State = components['schemas']['TranslationViewModel']['state']; type StateButtonProps = React.ComponentProps & { state: State | undefined; }; export const StateIcon = ({ state, ...props }: StateButtonProps) => { const additionalProps = { sx: { fontSize: 19 } }; switch (state) { case 'REVIEWED': return ; default: return ; } };