quivr/frontend/app/chat/[chatId]/components/ActionsBar/utils/checkIfHasPendingRequest.ts

8 lines
207 B
TypeScript
Raw Normal View History

import { Notification } from "../../../types";
export const checkIfHasPendingRequest = (
notifications: Notification[]
): boolean => {
return notifications.some((item) => item.status === "Pending");
};