import React from 'react'; import PropTypes from 'prop-types'; import './Dialog.scss'; import Text from '../../atoms/text/Text'; import Header, { TitleWrapper } from '../../atoms/header/Header'; import ScrollView from '../../atoms/scroll/ScrollView'; import RawModal from '../../atoms/modal/RawModal'; function Dialog({ className, isOpen, title, contentOptions, onRequestClose, children, }) { return (
{title} {contentOptions}
{children}
); } Dialog.defaultProps = { className: null, contentOptions: null, onRequestClose: null, }; Dialog.propTypes = { className: PropTypes.string, isOpen: PropTypes.bool.isRequired, title: PropTypes.string.isRequired, contentOptions: PropTypes.node, onRequestClose: PropTypes.func, children: PropTypes.node.isRequired, }; export default Dialog;