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