/** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; /** * WordPress dependencies */ const { __ } = wp.i18n; /** * Internal dependencies */ import Button from '../sui-button'; /** * Modal component. */ export default class Modal extends React.Component { /** * Close modal. */ closeModal() { window.SUI.closeModal(); } /** * Render component. * * @return {*} Modal component. */ render() { const sizeClass = this.props.size ? 'sui-modal-' + this.props.size : ''; return (
); } } Modal.propTypes = { id: PropTypes.string, isMember: PropTypes.bool, imagePath: PropTypes.string, imageSrcSet: PropTypes.string, size: PropTypes.string, title: PropTypes.string, description: PropTypes.string, content: PropTypes.element, footerBtn: PropTypes.element, };