import Stack from '@material-hu/mui/Stack';
import Typography from '@material-hu/mui/Typography';

import CardContainer from '@material-hu/components/design-system/CardContainer';

import { useLokaliseTranslation } from 'src/utils/i18n';

const RequestDescription = ({ description }: { description: string }) => {
  const { t } = useLokaliseTranslation('time_off');
  return (
    <CardContainer
      color="grey"
      fullWidth
    >
      <Stack>
        <Typography
          variant="globalXS"
          sx={{
            color: theme => theme.palette.new.text.neutral.lighter,
          }}
        >
          {t('observations')}
        </Typography>
        <Typography
          variant="globalXS"
          sx={{ whiteSpace: 'pre-line' }}
        >
          {description}
        </Typography>
      </Stack>
    </CardContainer>
  );
};

export default RequestDescription;
