()
| 103 | }; |
| 104 | |
| 105 | export const useNotifications = () => { |
| 106 | const context = useContext(NotificationContext); |
| 107 | if (context === undefined) { |
| 108 | throw new Error('useNotifications must be used within a NotificationProvider'); |
| 109 | } |
| 110 | return context; |
| 111 | }; |
no outgoing calls
no test coverage detected