File size: 266 Bytes
bb88c4d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * 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;
}