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"; import { Suspense } from "react"; import Loading from "../_components/Loading"; export const runtime = "edge"; export const preferredRegion = ["pdx1"]; export default async function Dashboard() { const user = await currentUser(); return (

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

}>
); }