mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-10-22 11:23:54 +00:00
Abstract controls on fullscreen
This commit is contained in:
@@ -5,6 +5,7 @@ export const UndoRedoContext = createContext(null);
|
||||
export default function UndoRedoContextProvider({ children }) {
|
||||
const [undoStack, setUndoStack] = useState([]);
|
||||
const [redoStack, setRedoStack] = useState([]);
|
||||
|
||||
return (
|
||||
<UndoRedoContext.Provider
|
||||
value={{ undoStack, redoStack, setUndoStack, setRedoStack }}
|
||||
|
||||
Reference in New Issue
Block a user