import React from 'react'; import { Grid } from '@mui/material'; import ShipmentPanel from './ShipmentPanel.tsx'; import ShipmentDetails from './ShipmentDetails.tsx'; import ShipmentForm from './ShipmentForm.tsx'; import ParentComponent from "./ParentComponent.tsx"; import { Shipment, Dewar } from '../types.ts'; import { ContactPerson, Address, Proposal } from '../types.ts'; const ShipmentView: React.FC = ({ newShipment, setNewShipment, isCreatingShipment, setIsCreatingShipment, selectedShipment, selectShipment, selectedDewar, setSelectedDewar, handleSaveShipment, contactPersons, returnAddresses, proposals, }) => { return ( {/* Left column: ShipmentPanel */} {/* Right column: ShipmentForm or ShipmentDetails */} {isCreatingShipment ? ( ) : ( )} ); }; export default ShipmentView;