"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useUppercase2LowercaseRedirect=void 0;const react_1=require("react"),react_router_dom_1=require("react-router-dom");function useUppercase2LowercaseRedirect(){const e=(0,react_router_dom_1.useNavigate)(),r=(0,react_router_dom_1.useLocation)();(0,react_1.useEffect)((()=>{r.pathname.toLowerCase()!==r.pathname&&e(r.pathname.toLowerCase(),{replace:!0})}),[r.pathname,e])}exports.useUppercase2LowercaseRedirect=useUppercase2LowercaseRedirect;
//# sourceMappingURL=useUppercase2LowercaseRedirect.js.map