src/examples/tour/profile.tsx
src/examples/tour/profile.tsx'use client'
import { useSession } from '@synqauth/react'
import type { ReactNode } from 'react'
// The member profile (AERO-3484, the tour's fifth step): Synq builds one for
// every brand at /me on its issuer, in the brand's own look, with the
// person's wallets, ways in, gates and communities. The app only links it.
// An app that wants its own screen draws it from the account API instead
// (useUser, useWallets, useLinkedAccounts).
export function ProfileLink({ className, children }: { className?: string; children: ReactNode }) {
const { accountPage } = useSession()
if (!accountPage) return null
return (
<a className={className} href={accountPage}>
{children}
</a>
)
}