mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-15 05:31:33 +03:00
14 lines
386 B
TypeScript
14 lines
386 B
TypeScript
|
import { useAxios } from "@/lib/hooks";
|
||
|
|
||
|
import { getChatNotifications } from "./notification";
|
||
|
|
||
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
||
|
export const useNotificationApi = () => {
|
||
|
const { axiosInstance } = useAxios();
|
||
|
|
||
|
return {
|
||
|
getChatNotifications: async (chatId: string) =>
|
||
|
await getChatNotifications(chatId, axiosInstance),
|
||
|
};
|
||
|
};
|