import { useParty } from "#/hooks/use-party"; import { useUser } from "#/hooks/user"; import { client } from "#/lib/eden"; import { initials } from "#/lib/utils"; import { Avatar, AvatarFallback, AvatarImage } from "./ui/avatar"; import { Button } from "./ui/button"; import { Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, } from "./ui/item"; export function UserInfo() { const { user } = useUser(); const { party, members, isConnecting, isReconnecting, resetParty } = useParty(); return ( {initials(user?.name || "")} {user?.name} {isConnecting ? "Connecting..." : isReconnecting ? "Reconnecting..." : party ? `${members.length} in party` : "No party yet"} {party && ( )} ); }