import { Fragment, useState } from "react"; import { useRouter } from "next/router"; import { Dialog, Transition } from "@headlessui/react"; import Button from "../buttons/Button"; import ListBox from "../Listbox"; const AddProjectMemberDialog = ({ isOpen, closeModal, submitModal, data, email, workspaceId, setEmail, }) => { const router = useRouter(); return (
{data?.length > 0 ? ( Add a member to your project ) : ( All the users in your organization are already invited. )}
{data?.length > 0 ? (

The user will receive an email with the instructions.

) : (

Add more users to the organization first.

)}
{data?.length > 0 && ( )}
{data?.length > 0 ? (
) : (
); }; export default AddProjectMemberDialog;