// resources/js/Plugins/AxiosContext.js
import { createContext, useContext } from 'react';
import axiosInstance from './axios-plugin';

const AxiosContext = createContext();

export const AxiosProvider = ({ children }) => <AxiosContext.Provider value={axiosInstance}>{children}</AxiosContext.Provider>;

export const useAxios = () => useContext(AxiosContext);
