import {Drawer, Typography, useMediaQuery, Link, Box} from '@mui/material'; import {useTranslation} from 'react-i18next'; import { CountryIso2, } from 'react-international-phone'; import DrawerPassengerHeader from './DrawerPassengerHeader'; import { getFormatedPhoneNumber } from '../../lib/phoneNumbers'; interface Props { isOpen: boolean; onClose: () => void; firstName: string; lastName: string; email: string; phone?: string; phoneCountry?: '' | CountryIso2; } const DrawerPassenger = ({ isOpen, onClose, lastName, firstName, email, phone, phoneCountry, }: Props) => { const {t} = useTranslation(); const isMobile = useMediaQuery('(max-width:400px)'); return ( {t('passenger.informations.name.label')} {firstName} {t('passenger.informations.surname.label')} {lastName} {t('passenger.informations.email.label')} {email} {t('passenger.informations.phone.label')} {phone ? ( {getFormatedPhoneNumber({phone, phoneCountry})} ) : ( {t('passenger.informations.notSpecify')} )} ); }; export default DrawerPassenger;