radames's picture
use hooks
423b87b
raw
history blame
266 Bytes
/**
* Works similarly to `liveblocks-react` useUndo
* https://liveblocks.io/docs/api-reference/liveblocks-react#useUndo
*
* const undo = useUndo()
* undo()
*/
import { useRoom } from "./useRoom";
export function useUndo() {
return useRoom().history.undo;
}