import { h } from 'preact'; import PropTypes from 'prop-types'; import { SingleListing } from '../singleListing/SingleListing'; import MessageModal from './MessageModal'; import { Button } from '@crayons'; const Modal = ({ currentUserId, onAddTag, onChangeDraftingMessage, onClick, onChangeCategory, onOpenModal, onSubmit, listing, message, }) => { const shouldRenderMessageModal = listing && listing.contact_via_connect; const Icon = () => ( ); // TODO: Why are we not using the crayons modal component and instead recreating it here? return ( ); }; Modal.propTypes = { listing: PropTypes.isRequired, onAddTag: PropTypes.func.isRequired, onChangeDraftingMessage: PropTypes.func.isRequired, onClick: PropTypes.func.isRequired, onChangeCategory: PropTypes.func.isRequired, onOpenModal: PropTypes.func.isRequired, onSubmit: PropTypes.func.isRequired, currentUserId: PropTypes.number, message: PropTypes.string.isRequired, }; Modal.defaultProps = { currentUserId: null, }; export default Modal;