mars-v2-frontend/src/pages/LendPage.tsx

17 lines
639 B
TypeScript
Raw Normal View History

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'
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' />
2023-06-15 12:34:12 +00:00
<LendingMarketsTable data={availableAssets} title='Available Markets' />
2023-07-04 14:15:36 +00:00
</div>
)
}