Co-authored-by: Nick Taylor <nick@iamdeveloper.com> Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
18 lines
395 B
JavaScript
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;
|