import React, { useState } from 'react' import { Button } from '@patternfly/react-core' import { useMutation } from 'react-query' import { PlusIcon } from '@patternfly/react-icons' import { buttonContainer } from './NewProject.module.scss' import TextInputModal from '../util/modals/TextInputModal' /** * A container for creating a new project. */ const NewProject = () => { const [isVisible, setVisible] = useState(false) const { mutate: addProject } = useMutation('addProject') const onSubmit = (name) => { if (name) { addProject({ name }) } setVisible(false) } return ( <>
) } export default NewProject