import RoomList from "@/app/_components/RoomList"; import { FaShieldAlt } from "react-icons/fa"; import { GiStarFormation } from "react-icons/gi"; import { isAdmin, isVIP } from "@/utils/helpers"; import { currentUser } from "@clerk/nextjs"; export const runtime = "edge"; export const preferredRegion = ["pdx1"]; export const dynamic = "force-dynamic"; export const revalidate = 0; export const fetchCache = "force-no-store"; export default async function Dashboard() { const user = await currentUser(); return (

Hi, {user?.firstName}!{" "} {isAdmin(user?.publicMetadata) && ( )} {isVIP(user?.publicMetadata) && ( )}

{user && }
); }