import { useEffect, useRef } from 'react';
export function usePrevious(value) {
    const previous = useRef();
    useEffect(() => {
        previous.current = value;
    });
    return previous.current;
}
