mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-02-12 02:00:40 +08: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