import { useEffect } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
export function useUppercase2LowercaseRedirect() {
    const navigate = useNavigate();
    const location = useLocation();
    useEffect(() => {
        if (location.pathname.toLowerCase() !== location.pathname) {
            navigate(location.pathname.toLowerCase(), { replace: true });
        }
    }, [location.pathname, navigate]);
}
//# sourceMappingURL=useUppercase2LowercaseRedirect.js.map