mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-09-19 22:14:50 +00:00
Abstract save state from editor
This commit is contained in:
6
src/hooks/useSaveState.js
Normal file
6
src/hooks/useSaveState.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useContext } from "react";
|
||||
import { SaveStateContext } from "../context/SaveStateContext";
|
||||
|
||||
export default function useSaveState() {
|
||||
return useContext(SaveStateContext);
|
||||
}
|
Reference in New Issue
Block a user