import { ColumnDef } from '@tanstack/react-table' import { useMemo } from 'react' import Apy, { APY_META } from 'components/Account/AccountBalancesTable/Columns/Apy' import Asset, { ASSET_META } from 'components/Account/AccountBalancesTable/Columns/Asset' import Size, { SIZE_META, sizeSortingFn, } from 'components/Account/AccountBalancesTable/Columns/Size' import Value, { VALUE_META, valueSortingFn, } from 'components/Account/AccountBalancesTable/Columns/Value' import useMarketAssets from 'hooks/useMarketAssets' export default function useAccountBalancesColumns() { const { data: markets } = useMarketAssets() return useMemo[]>(() => { return [ { ...ASSET_META, cell: ({ row }) => , }, { ...VALUE_META, cell: ({ row }) => ( ), sortingFn: valueSortingFn, }, { ...SIZE_META, cell: ({ row }) => ( ), sortingFn: sizeSortingFn, }, { ...APY_META, cell: ({ row }) => ( ), }, ] }, [markets]) }