mars-v2-frontend/src/hooks/usePrices.tsx
Linkie Link 160f8da6aa
Mp 3105 build rewards center for v 2 (#389)
* MP-3105: finished rewards center

* tidy: refactor

* fix: rerolled generated types

* fix: revert types to before

* refactor: addressed feedback
2023-08-21 17:31:47 +02:00

12 lines
237 B
TypeScript

import useSWR from 'swr'
import getPrices from 'api/prices/getPrices'
export default function usePrices() {
return useSWR('prices', getPrices, {
fallbackData: [],
refreshInterval: 30_000,
revalidateOnFocus: false,
})
}