feat: 新增通知管理 React Hook 和 Provider,支持获取、刷新和标记通知为已读功能。

This commit is contained in:
2026-01-28 08:43:58 +08:00
parent 4fb85cf680
commit 0ee7c13ed8

View File

@@ -1,5 +1,5 @@
import React, { useState, useEffect, useCallback, createContext, useContext } from 'react';
import { notificationService, Notification } from '../services/notificationService';
import { notificationService, type Notification } from '../services/notificationService';
interface NotificationContextType {
notifications: Notification[];