Added SSE function and add readAt for notification

This commit is contained in:
2026-02-21 22:34:29 +07:00
parent fa689ea4aa
commit ab745e6a2f
17 changed files with 349 additions and 43 deletions

View File

@@ -0,0 +1,14 @@
import { create } from 'zustand';
type NotifyState = {
hasNew: boolean;
setHasNew: (hasNew: boolean) => void;
};
const useNotificationStore = create<NotifyState>((set) => ({
hasNew: false,
setHasNew: (hasNew: boolean) => set({ hasNew }),
toggleNew: () => set((state) => ({ hasNew: !state.hasNew })),
}));
export default useNotificationStore;