import { h } from 'preact'; import PropTypes from 'prop-types'; import { SingleListing } from '../singleListing/SingleListing'; import { Modal as CrayonsModal } from '@crayons'; export const Modal = ({ currentUserId, onAddTag, onClick, onChangeCategory, onOpenModal, listing, }) => { return (
); }; Modal.propTypes = { listing: PropTypes.isRequired, onAddTag: PropTypes.func.isRequired, onClick: PropTypes.func.isRequired, onChangeCategory: PropTypes.func.isRequired, onOpenModal: PropTypes.func.isRequired, currentUserId: PropTypes.number, }; Modal.defaultProps = { currentUserId: null, };