import { Modal } from '@mui/material'; import { Box } from '@mui/system'; import ContactForm from '../../forms/contact/ContactForm'; import ShippingDetailsForm, { FormValues, } from '../../forms/shipping-details/ShippingDetailsForm'; import { FC } from 'react'; import { ShippingData } from '../../../utils/interface/orderInterface'; interface Props { open: { isOpen: boolean; type: string }; handleClose: () => void; handleChangeShipping: (x: ShippingData | FormValues) => void; handleChangeContact: (values: string) => void; } const ShippingModal: FC = ({ open, handleClose, handleChangeShipping, handleChangeContact, }) => { return ( {open.type === 'Shipping' && ( )} {open.type === 'Contact' && ( )} ); }; export default ShippingModal;