"use client"; import { observer } from "mobx-react-lite"; import Image from "next/image"; import { useTheme } from "next-themes"; // components import { UserAvatar } from "@/components/issues"; // hooks import { useUser } from "@/hooks/store"; // assets import PlaneBlackLogo from "@/public/plane-logos/black-horizontal-with-blue-logo.png"; import PlaneWhiteLogo from "@/public/plane-logos/white-horizontal-with-blue-logo.png"; import UserLoggedInImage from "@/public/user-logged-in.svg"; export const UserLoggedIn = observer(() => { // store hooks const { data: user } = useUser(); // next-themes const { resolvedTheme } = useTheme(); const logo = resolvedTheme === "dark" ? PlaneWhiteLogo : PlaneBlackLogo; if (!user) return null; return (
You{"'"}ve successfully logged in. Please enter the appropriate project URL to view the issue board.