Abstract notes out of editor

This commit is contained in:
1ilit
2024-03-12 23:36:49 +02:00
parent d06074451e
commit 54c043204a
7 changed files with 169 additions and 142 deletions

6
src/hooks/useNotes.js Normal file
View File

@@ -0,0 +1,6 @@
import { useContext } from "react";
import { NotesContext } from "../context/NotesContext";
export default function useNotes() {
return useContext(NotesContext);
}