add the Manage Notifications page and handle the create notification form
This commit is contained in:
@ -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 };
|
||||
Reference in New Issue
Block a user