import { ColumnDef } from '@tanstack/react-table' import { useMemo } from 'react' import Apy, { APY_META } from 'components/earn/farm/Table/Columns/Apy' import { Deposit, DEPOSIT_META } from 'components/earn/farm/Table/Columns/Deposit' import DepositCap, { DEPOSIT_CAP_META, depositCapSortingFn, } from 'components/earn/farm/Table/Columns/DepositCap' import MaxLTV, { LTV_MAX_META } from 'components/earn/farm/Table/Columns/MaxLTV' import Name, { NAME_META } from 'components/earn/farm/Table/Columns/Name' import TVL, { TVL_META } from 'components/earn/farm/Table/Columns/TVL' interface Props { isLoading: boolean } export default function useAvailableColumns(props: Props) { return useMemo[]>(() => { return [ { ...NAME_META, cell: ({ row }) => , }, { ...APY_META, cell: ({ row }) => , }, { ...TVL_META, cell: ({ row }) => , }, { ...DEPOSIT_CAP_META, cell: ({ row }) => , sortingFn: depositCapSortingFn, }, { ...LTV_MAX_META, cell: ({ row }) => , }, { ...DEPOSIT_META, cell: ({ row }) => , }, ] }, [props.isLoading]) }