2023-06-05 06:31:46 +00:00
|
|
|
import useSWR from 'swr'
|
|
|
|
|
|
|
|
import getDepositedVaults from 'api/vaults/getDepositedVaults'
|
|
|
|
|
|
|
|
export default function useDepositedVaults(accountId: string) {
|
|
|
|
return useSWR(`depositedVaultsByAccount-${accountId}`, () => getDepositedVaults(accountId), {
|
|
|
|
suspense: true,
|
2023-08-05 09:52:11 +00:00
|
|
|
revalidateOnFocus: false,
|
2023-06-05 06:31:46 +00:00
|
|
|
})
|
|
|
|
}
|