import { useEffect, useRef } from 'react';
export function usePrevious(value) {
  const ref = useRef(undefined);
  useEffect(() => {
    ref.current = value;
  });
  return ref.current;
}
//# sourceMappingURL=StateHelpers.js.map