import Image from "next/image"; // hooks import { useUser } from "@/hooks/store"; // assets import PlaneLogo from "public/plane-logos/black-horizontal-with-blue-logo.svg"; import UserLoggedInImage from "public/user-logged-in.svg"; export const UserLoggedIn = () => { const { data: user } = useUser(); 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.

); };