mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-20 06:25:26 +00:00
Abstract notes out of editor
This commit is contained in:
6
src/hooks/useNotes.js
Normal file
6
src/hooks/useNotes.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useContext } from "react";
|
||||
import { NotesContext } from "../context/NotesContext";
|
||||
|
||||
export default function useNotes() {
|
||||
return useContext(NotesContext);
|
||||
}
|
Reference in New Issue
Block a user