mirror of
https://github.com/drawdb-io/drawdb.git
synced 2026-06-03 02:01:39 +08:00
Abstract save state from editor
This commit is contained in:
@@ -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