docbrown/app/javascript/listings/components/ModalBackground.jsx
Nick Taylor 653ec12300
Upgrade to Preact 10.4.4 (#8739)
Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2020-06-18 10:07:17 -04:00

18 lines
395 B
JavaScript

import { h } from 'preact';
import PropTypes from 'prop-types';
const ModalBackground = ({ onClick }) => (
<div
data-testid="listings-modal-background"
className="listings-modal-background"
onClick={onClick}
role="presentation"
id="listings-modal-background"
/>
);
ModalBackground.propTypes = {
onClick: PropTypes.func.isRequired,
};
export default ModalBackground;