// Smart App City — useNotifications Hook import { useNotificationStore, AppNotification } from '../stores/notificationStore'; export function useNotifications() { const notifications = useNotificationStore((s) => s.notifications); const unreadCount = useNotificationStore((s) => s.unreadCount); const markAsRead = useNotificationStore((s) => s.markAsRead); const markAllAsRead = useNotificationStore((s) => s.markAllAsRead); const removeNotification = useNotificationStore((s) => s.removeNotification); const clearAll = useNotificationStore((s) => s.clearAll); const addNotification = useNotificationStore((s) => s.addNotification); return { notifications, unreadCount, markAsRead, markAllAsRead, removeNotification, clearAll, addNotification, }; }