mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-01 20:55:16 +09:00
10 lines
232 B
JavaScript
10 lines
232 B
JavaScript
import { createContext, useContext } from 'react';
|
|
|
|
export const NotificationsContext = createContext(null);
|
|
|
|
export function useNotifications() {
|
|
return useContext(NotificationsContext);
|
|
}
|
|
|
|
export default NotificationsContext;
|