import { AxiosRequestConfig } from 'axios'; import axiosClient from './axiosClient'; export const fetcher = async ( url: string | undefined = undefined, props: AxiosRequestConfig = {}, ) => { const res = await axiosClient>({ url, ...props }); return res.data; }; export default fetcher;