* fix: remove headline of Portfolio * feat: added multiple backgrounds and new intro props
30 lines
852 B
TypeScript
30 lines
852 B
TypeScript
import { useParams } from 'react-router-dom'
|
|
|
|
import Intro from 'components/Intro'
|
|
import useStore from 'store'
|
|
|
|
export default function PortfolioIntro() {
|
|
const { address } = useParams()
|
|
const walletAddress = useStore((s) => s.address)
|
|
|
|
return (
|
|
<Intro
|
|
text={
|
|
address && !walletAddress ? (
|
|
<>
|
|
This is the <span className='text-white'>Portfolio</span> of the address{' '}
|
|
<span className='text-white'>{address}</span>. You can see all Credit Accounts of this
|
|
address, but you can't interact with them.
|
|
</>
|
|
) : (
|
|
<>
|
|
This is your <span className='text-white'>Portfolio</span>. Use it to get an overview
|
|
about all your Credit Accounts and their balances.
|
|
</>
|
|
)
|
|
}
|
|
bg='portfolio'
|
|
></Intro>
|
|
)
|
|
}
|