160f8da6aa
* MP-3105: finished rewards center * tidy: refactor * fix: rerolled generated types * fix: revert types to before * refactor: addressed feedback
12 lines
237 B
TypeScript
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,
|
|
})
|
|
}
|