// @ts-nocheck // This file is generated by Umi automatically // DO NOT CHANGE IT MANUALLY! import React, { useState, useEffect, useRef } from 'react'; import { useOutlet, history } from 'dumi'; import { SiteContext } from '/Users/mac/Public/Workspace/React/aj-captcha-react/node_modules/dumi/dist/client/theme-api/context.js'; import { demos, components } from '../meta'; import { locales } from '../locales/config'; const entryExports = { }; export default function DumiContextWrapper() { const outlet = useOutlet(); const [loading, setLoading] = useState(false); const prev = useRef(history.location.pathname); useEffect(() => { return history.listen((next) => { if (next.location.pathname !== prev.current) { prev.current = next.location.pathname; // scroll to top when route changed document.documentElement.scrollTo(0, 0); } }); }, []); return ( dumi","prefersColor":{"default":"light","switch":true},"nprogress":true,"lastUpdated":true,"editLink":"https://github.com/yuegongzi/aj-captcha-react/edit/master/{filename}"}, _2_level_nav_available: true, }}> {outlet} ); }