bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/notes/hooks/useHasUnreadNotes.ts
2024-05-01 09:39:03 -03:00

13 lines
367 B
TypeScript

import useRev from '/imports/ui/components/pads/pads-graphql/hooks/useRev';
import useNotesLastRev from './useNotesLastRev';
const NOTES_CONFIG = window.meetingClientSettings.public.notes;
const useHasUnreadNotes = () => {
const { lastRev } = useNotesLastRev();
const rev = useRev(NOTES_CONFIG.id);
return rev > lastRev;
};
export default useHasUnreadNotes;