import React from 'react'; import loadable from '@loadable/component'; import {ShowTopLoading} from '@wfh/doc-ui-common/client/components/ShowTopLoading'; import {AnimatableRoutesProps} from '@wfh/doc-ui-common/client/animation/AnimatableRoutes'; const LazyDocComponent = loadable(async () => { return (await import('../feature/article/ArticalePage')).ArticalePage; }, {fallback: }); const LazyDemoComponent = loadable(async () => { return (await import('../feature/demo/DemoPage')).DemoPage; }, {fallback: }); const BgBlurDemo = loadable(async () => { return (await import('../feature/demo/BackgroundBlurDemo')).BackgroundBlurDemo; }, {fallback: }); const BgDemo = loadable(async () => { return (await import('../feature/demo/BackgroundDemo')).BackgroundDemo; }, {fallback: }); const SurfaceDemo = loadable(async () => { return (await import('../feature/demo/SurfaceBackgroundDemo')).SurfaceBackgroundDemo; }); export const routes: AnimatableRoutesProps['routes'] = [ {path: '/test', children: 'test ok'}, {path: '/demo/background', children: }, {path: '/demo/background-blur', children: }, {path: '/demo/surface', children: }, {path: '/demo', children: }, {path: '/doc/:mdKey', children: } ]; export const defaultRedirect = '/demo';