// import { PageLoading } from '@ant-design/pro-layout';

// // loading components from code split
// // https://umijs.org/plugin/umi-plugin-react.html#dynamicimport
// export default PageLoading;
import React from 'react';
import SkeletonLoading from '../SkeletonLoading';
import { SimplePageTransition } from '../PageTransition';

interface PageLoadingProps {
    enableAnimation?: boolean;
}

const PageLoading: React.FC<PageLoadingProps> = ({ enableAnimation = false }) => {
    return (
        <SimplePageTransition enableAnimation={enableAnimation}>
            <SkeletonLoading type="page" />
        </SimplePageTransition>
    );
};

export default PageLoading;