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 (