import React from 'react'; import PropTypes from 'prop-types'; import './Dialog.scss'; import { twemojify } from '../../../util/twemojify'; 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 (
{twemojify(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;