feat: 新增通知管理 React Hook 和 Provider,支持获取、刷新和标记通知为已读功能。
This commit is contained in:
@@ -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[];
|
||||
|
||||
Reference in New Issue
Block a user