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