add the Manage Notifications page and handle the create notification form

This commit is contained in:
Wikzyy
2025-02-25 14:27:54 +07:00
parent 754c67a6d2
commit 5c6feb8ab5
5 changed files with 370 additions and 5 deletions

View File

@ -0,0 +1,12 @@
import { useContext } from 'react';
import { ManageNotifContext } from './ManageNotificationContext';
const useManageNotificationContext = () => {
const context = useContext(ManageNotifContext);
if (!context) throw new Error('useManageNotificationContext must be used within AuthProvider');
return context;
};
export { useManageNotificationContext };