2024-01-16 03:49:09 +08:00
|
|
|
import useRev from '/imports/ui/components/pads/pads-graphql/hooks/useRev';
|
|
|
|
import useNotesLastRev from './useNotesLastRev';
|
|
|
|
|
|
|
|
const useHasUnreadNotes = () => {
|
2024-05-29 21:26:11 +08:00
|
|
|
const NOTES_CONFIG = window.meetingClientSettings.public.notes;
|
|
|
|
|
2024-01-16 03:49:09 +08:00
|
|
|
const { lastRev } = useNotesLastRev();
|
|
|
|
const rev = useRev(NOTES_CONFIG.id);
|
|
|
|
return rev > lastRev;
|
|
|
|
};
|
|
|
|
|
|
|
|
export default useHasUnreadNotes;
|