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