import React from 'react'; import { useLocation } from 'dumi'; import { Skeleton, Space, Spin } from 'antd'; const Loading: React.FC = () => { const { pathname } = useLocation(); if ( pathname.startsWith('/components') || pathname.startsWith('/docs') || pathname.startsWith('/changelog') ) { return ( ); } return ( ); }; export default Loading;