import { Modal } from '@mui/material'; import { Box } from '@mui/system'; import PropType from 'prop-types'; import ContactForm from '../../forms/contact/ContactForm'; import ShippingDetailsForm from '../../forms/shipping-details/ShippingDetailsForm'; const ShippingModal = ({ open, handleClose, handleChangeShipping, handleChangeContact, }) => { return ( {open.type === 'Shipping' && ( )} {open.type === 'Contact' && ( )} ); }; ShippingModal.propTypes = { open: PropType.object, handleClose: PropType.func, handleChangeShipping: PropType.func, handleChangeContact: PropType.func, }; export default ShippingModal;