import * as React from 'react';
import { useLocation } from 'react-router-dom';
import { runtime } from './adapter';
export function useScrollTop() {
    var pathname = useLocation().pathname;
    React.useEffect(function () {
        runtime === null || runtime === void 0 ? void 0 : runtime.scrollTo(0, 0);
    }, [pathname]);
    return null;
}
//# sourceMappingURL=hooks.js.map