import { useState } from "react"; import Image from "next/image"; import { useRouter } from "next/router"; // mobx store import { useMobxStore } from "lib/mobx/store-provider"; // ui import { Button } from "@plane/ui"; // icons import { ClipboardList } from "lucide-react"; // images import JoinProjectImg from "public/auth/project-not-authorized.svg"; export const JoinProject: React.FC = () => { const [isJoiningProject, setIsJoiningProject] = useState(false); const { user: { joinProject }, } = useMobxStore(); const router = useRouter(); const { workspaceSlug, projectId } = router.query; const handleJoin = () => { if (!workspaceSlug || !projectId) return; setIsJoiningProject(true); joinProject(workspaceSlug.toString(), [projectId.toString()]).finally(() => { setIsJoiningProject(false); }); }; return (
JoinProject

You are not a member of this project

You are not a member of this project, but you can join this project by clicking the button below.

); };