1 export const swrFetcher = async <JSON = any>(
2 input: RequestInfo,
3 init?: RequestInit
4 ): Promise<JSON> => {
5 const res = await fetch(input, init)
6 return res.json()
7 }