import React, { useState, useEffect } from "react";
import PropTypes from "prop-types";

import Modal from 'antd/lib/modal';
import Typography from 'antd/lib/typography';

const { Title } = Typography;

const ModalNewEvent = ({onClose}) => {
    const [loading, setLoading] = useState(false);

    return <Modal 
        title="Publicações" 
        visible={true}
        onOk = {() => {onClose()}}
        onCancel = { () => {onClose()} }>
            { Service.spin(loading) }
            <Title>TESTE</Title>
        </Modal>;
    
};


ModalNewEvent.propTypes = {
    onClose: PropTypes.func.isRequired
};

export default ModalNewEvent;