2023-09-05 17:42:53 +00:00
|
|
|
import LendIntro from 'components/Earn/Lend/LendIntro'
|
2023-06-15 12:34:12 +00:00
|
|
|
import LendingMarketsTable from 'components/Earn/Lend/LendingMarketsTable'
|
2023-07-04 14:15:36 +00:00
|
|
|
import Tab from 'components/Earn/Tab'
|
2023-06-15 12:34:12 +00:00
|
|
|
import useLendingMarketAssetsTableData from 'hooks/useLendingMarketAssetsTableData'
|
2023-04-16 08:32:14 +00:00
|
|
|
|
2023-05-16 10:39:52 +00:00
|
|
|
export default function LendPage() {
|
2023-06-23 10:30:08 +00:00
|
|
|
const { accountLentAssets, availableAssets } = useLendingMarketAssetsTableData()
|
2023-04-16 08:32:14 +00:00
|
|
|
return (
|
2023-09-05 17:42:53 +00:00
|
|
|
<div className='flex flex-wrap w-full gap-4'>
|
2023-05-16 10:39:52 +00:00
|
|
|
<Tab />
|
2023-09-05 17:42:53 +00:00
|
|
|
<LendIntro />
|
2023-06-23 10:30:08 +00:00
|
|
|
<LendingMarketsTable data={accountLentAssets} title='Lent Assets' />
|
2023-06-15 12:34:12 +00:00
|
|
|
<LendingMarketsTable data={availableAssets} title='Available Markets' />
|
2023-07-04 14:15:36 +00:00
|
|
|
</div>
|
2023-04-16 08:32:14 +00:00
|
|
|
)
|
|
|
|
}
|