"use client" import axios from "axios"; import * as React from 'react'; import { useEffect, useState } from "react"; import { useSession } from "next-auth/react"; import { cn } from "@/lib/utils"; const AdminProfile = () => { const session = useSession(); const [user, setUser] = useState<{ id: string, username: string }>() return (

Role:

{session?.data?.user?.role}

); } export default AdminProfile;