quivr/frontend/lib/api/notification/useNotificationApi.ts

14 lines
386 B
TypeScript
Raw Normal View History

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),
};
};