"use client"; import React from "react"; import LazyLoadedImage from "./lazyLoadedImage"; import { Alert, AlertDescription, AlertTitle } from "./ui/alert"; import { OctagonXIcon } from "lucide-react"; import { RobloxPremiumSmall, RobloxVerifiedSmall } from "./RobloxTooltipStuff"; import { useCurrentAccount } from "@/hooks/roblox/useCurrentAccount"; import { Skeleton } from "./ui/skeleton"; export function HomeLoggedInHeader() { const profile = useCurrentAccount(); if (profile === false) { return (
Failed to fetch account info Please make sure .ROBLOSECURITY is set! Is Roblox having an outage?
); } return ( <>
{!profile ? ( ) : ( )}
{profile ? ( <>Hello, {profile.displayName} ) : ( <> )} {/* TODO: Fetch the User's Roblox Premium subscription state */} {profile ? ( <>@{profile.name} ) : ( )}
); }