import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; import Icon from '../Icon'; import Tooltip from '../Tooltip'; const classes = { infoHeader: 'text-base text-primary-light', infoText: 'text-base text-white max-w-24 truncate', firstRow: 'flex flex-col', row: 'flex flex-col ml-4', }; function PatientInfo({ patientName, patientSex, patientAge, MRN, thickness, thicknessUnits, spacing, scanner, isOpen, showPatientInfoRef, }) { const { t } = useTranslation('PatientInfo'); while (patientAge.charAt(0) === '0') { patientAge = patientAge.substr(1); } return (