import { UserCircleIcon } from '@heroicons/react/24/outline'; import { authOptions } from 'app/api/auth/[...nextauth]/route'; import { getServerSession } from 'next-auth'; import Link from 'next/link'; export default async function UserIcon() { const isAuthenticated = (await getServerSession(authOptions))?.user?.token; return (
); }