mars-v2-frontend/src/pages/LendPage.tsx
2023-09-05 19:42:53 +02:00

17 lines
639 B
TypeScript

import LendIntro from 'components/Earn/Lend/LendIntro'
import LendingMarketsTable from 'components/Earn/Lend/LendingMarketsTable'
import Tab from 'components/Earn/Tab'
import useLendingMarketAssetsTableData from 'hooks/useLendingMarketAssetsTableData'
export default function LendPage() {
const { accountLentAssets, availableAssets } = useLendingMarketAssetsTableData()
return (
<div className='flex flex-wrap w-full gap-4'>
<Tab />
<LendIntro />
<LendingMarketsTable data={accountLentAssets} title='Lent Assets' />
<LendingMarketsTable data={availableAssets} title='Available Markets' />
</div>
)
}