export const fetcher = async (url: string) => { const res = await fetch(url); return res.json(); };