import { j as o } from "../../node_modules/react/jsx-runtime.mjs";
import { useEffect as e } from "react";
import { useLocation as n } from "../../node_modules/react-router/dist/index.mjs";
const c = (r) => {
  const { pathname: t } = n();
  return e(() => {
    window.scrollTo(0, 0);
  }, [t]), o.jsx(o.Fragment, { children: r.children });
};
export {
  c as default
};
