"use client" import { useAccount } from "@/lib/providers/jazz-provider" import { useParams, useRouter } from "next/navigation" import Link from "next/link" import { LaIcon } from "@/components/custom/la-icon" import { Icon } from "@/components/la-editor/components/ui/icon" import { Button } from "@/components/ui/button" interface ProfileStatsProps { number: number label: string } interface ProfileLinksProps { linklabel?: string link?: string topic?: string } interface ProfilePagesProps { topic?: string } const ProfileStats: React.FC = ({ number, label }) => { return (

{number}

{label}

) } const ProfileLinks: React.FC = ({ linklabel, link, topic }) => { return (

{linklabel || "Untitled"}

{link || "#"}

{topic || "Uncategorized"}
) } const ProfilePages: React.FC = ({ topic }) => { return (
{topic || "Uncategorized"}
) } export const ProfileWrapper = () => { const account = useAccount() const params = useParams() const username = params.username as string const router = useRouter() const clickEdit = () => router.push("/edit-profile") if (!account.me || !account.me.profile) { return (

Oops! This account doesn't exist.

Try searching for another.

The link you followed may be broken, or the page may have been removed. Go back to homepage .

) } return (

Profile

{username}

{account.me.profile.name}

@

{account.me.root?.username}

{account.me.root?.website}

{/*

Public Pages

{account.me.root?.personalPages?.map((page, index) => )}

Public Links

{account.me.root?.personalLinks?.map((link, index) => ( ))}
*/}
) }