import { useState } from "react"; import { useRouter } from "next/router"; // hooks import useUser from "hooks/use-user"; // layouts import { AppLayout } from "layouts/app-layout"; import { WorkspaceSettingLayout } from "layouts/setting-layout"; // components import { WorkspaceSettingHeader } from "components/headers"; import { SendWorkspaceInvitationModal, WorkspaceMembersList } from "components/workspace"; // ui import { Button } from "@plane/ui"; // types import type { NextPage } from "next"; const MembersSettings: NextPage = () => { const [inviteModal, setInviteModal] = useState(false); const router = useRouter(); const { workspaceSlug } = router.query; const { user } = useUser(); return ( }> {workspaceSlug && ( setInviteModal(false)} workspaceSlug={workspaceSlug.toString()} user={user} /> )} Members setInviteModal(true)}> Add Member ); }; export default MembersSettings;