()
| 18 | } |
| 19 | |
| 20 | export const useCurrentNote = () => { |
| 21 | const context = useContext(NoteContext); |
| 22 | if (context === undefined) { |
| 23 | throw new Error('useCurrentNote must be used within a provider'); |
| 24 | } |
| 25 | return context; |
| 26 | }; |
no outgoing calls
no test coverage detected