import { Button, Typography } from '@mui/material'; import { Box } from '@mui/system'; import { useTranslation } from 'next-i18next'; import PropType from 'prop-types'; const ShippingData = ({ email, address, city, postcode, handleOpen }) => { const { t } = useTranslation('shipping'); return ( <> {t('shipping:contact')} {email} {t('shipping:shipping')} {address} | {city} | {postcode} ); }; ShippingData.propTypes = { email: PropType.string, address: PropType.string, city: PropType.string, postcode: PropType.string, handleOpen: PropType.func, }; export default ShippingData;