mars-v2-frontend/src/hooks/useICNSDomain.tsx
Linkie Link c9e84a85d5
MP-2887: added ICNS and ICP support (#638)
* MP-2887: added ICNS and ICP support

:

* fix: removed unessecary package
2023-11-20 11:36:25 +01:00

10 lines
225 B
TypeScript

import useSWR from 'swr'
import getICNS from 'api/wallets/getICNS'
export default function useICNSDomain(address?: string) {
return useSWR(`ICNS-${address}`, () => getICNS(address), {
revalidateOnFocus: false,
})
}