"use client";
import { FireIcon, SparklesIcon } from "@heroicons/react/24/outline";
import { useParams } from "next/navigation";
import { DataPageLayout } from "@/app/_components/data-page-layout";
import { trpc } from "@/lib/trpc";
export default function PublicProfilePage() {
const params = useParams<{ handle: string }>();
const handleSlug = decodeURIComponent(params.handle ?? "");
const profileQuery = trpc.users.publicProfileByHandle.useQuery(
{ handle: handleSlug },
{ retry: false },
);
if (profileQuery.isLoading) {
return (
Profil wird geladen …
{profile.username}
#{profile.discriminator}
{profile.bio} Keine Bio hinterlegt.
Gesundheitsdaten wie Gewicht, Kalorien und Ziele sind immer privat und
werden hier nie angezeigt.
) : (
{value}