bigbuffet-rw/app/soapbox/hooks/useApi.ts
2023-03-13 17:45:35 -05:00

9 lines
224 B
TypeScript

import api from 'soapbox/api';
import { useGetState } from './useGetState';
/** Use stateful Axios client with auth from Redux. */
export const useApi = () => {
const getState = useGetState();
return api(getState);
};