import Image from "next/image"; // mobx import { useMobxStore } from "lib/mobx/store-provider"; // assets import UserLoggedInImage from "public/user-logged-in.svg"; import PlaneLogo from "public/plane-logos/black-horizontal-with-blue-logo.svg"; export const UserLoggedIn = () => { const { user: userStore } = useMobxStore(); const user = userStore.currentUser; if (!user) return null; return (
User already logged in
{user.avatar && user.avatar !== "" ? (
{/* eslint-disable-next-line @next/next/no-img-element */} {user.display_name
) : (
{(user.display_name ?? "U")[0]}
)}
{user.display_name}
User already logged in

Logged in Successfully!

You{"'"}ve successfully logged in. Please enter the appropriate project URL to view the issue board.

); };