market/src/components/pages/Account/index.tsx

24 lines
586 B
TypeScript

import React, { ReactElement } from 'react'
import HistoryPage from './History'
import { useWeb3 } from '../../../providers/Web3'
export default function AccountPage({
accountIdentifier
}: {
accountIdentifier: ReactElement | string
}): ReactElement {
const { accountId } = useWeb3()
if (!accountIdentifier) accountIdentifier = accountId
return (
<article>
{accountIdentifier ? (
<p>WIP Account metadata header for user: {accountIdentifier}</p>
) : (
<p>Please connect your Web3 wallet.</p>
)}
<HistoryPage />
</article>
)
}