import * as React from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { library } from '@fortawesome/fontawesome-svg-core'; import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes'; import Modal, { ModalProps } from '../../../containers/modal/Modal'; import { containerStyle, overlayStyle, modalWrapperStyle, headerStyle, titleStyle, closeWrapperStyle, closeStyle, sectionStyle } from './modalOne.style'; library.add(faTimes); class ModalOne extends React.PureComponent { render() { return ( void) => { if (!opened) return null; return (
{this.props.translator(this.props.title)}
{this.props.children}
); }} /> ); } } export default ModalOne;