import { API_URL } from "../config"; export const fetcher = (url: string) => fetch(`${API_URL}${url}`).then((r) => r.json());