mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-14 13:19:05 +03:00
7cc90ef258
* feat: add notification controller * feat: add polling logic on pending notifications * feat: refecth notifications on Feed
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),
|
|
};
|
|
};
|