import { Button } from 'react-bootstrap';
import React, { useState } from 'react';

import styles from './Submit.module.css';
import SubmitForm from './SubmitForm';
const Submit = () => {
    const [show, setShow] = useState(false);

    const handleClose = () => setShow(false);
    const handleShow = () => setShow(true);

    return (
        <>
            <Button
                variant='success'
                className={styles.submitButton}
                onClick={handleShow}
            >
                Add New
            </Button>
            <SubmitForm handleClose={handleClose} show={show} />
        </>
    );
};

export default Submit;
