()
| 74 | } |
| 75 | |
| 76 | export function useNotifications() { |
| 77 | const context = useContext(NotificationsContext) |
| 78 | if (!context) { |
| 79 | throw new Error("useNotifications must be used within a NotificationsProvider") |
| 80 | } |
| 81 | return context |
| 82 | } |
| 83 |
no outgoing calls
no test coverage detected