mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 01:55:15 +03:00
14 lines
364 B
TypeScript
14 lines
364 B
TypeScript
|
import { useAxios } from "@/lib/hooks";
|
||
|
|
||
|
import { uploadFile, UploadInputProps } from "./upload";
|
||
|
|
||
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||
|
export const useUploadApi = () => {
|
||
|
const { axiosInstance } = useAxios();
|
||
|
|
||
|
return {
|
||
|
uploadFile: async (props: UploadInputProps) =>
|
||
|
uploadFile(props, axiosInstance),
|
||
|
};
|
||
|
};
|