mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-22 12:27:13 +08:00
* Code splitting and lazy loading for admin page components * Code splitting and lazy loading for mixpanel library * Set names for each chunk * Code splitting and lazy loading for modal components * Code splitting and lazy loading for charts * Consistent naming convention for webpack chunks
12 lines
297 B
JavaScript
12 lines
297 B
JavaScript
import { Suspense } from '@wordpress/element';
|
|
import SettingsLoader from './page-content-loader';
|
|
|
|
const PageContent = ({ isLoading, page }) => {
|
|
if (isLoading) {
|
|
return <SettingsLoader />;
|
|
}
|
|
|
|
return <Suspense fallback={<SettingsLoader />}>{page}</Suspense>;
|
|
};
|
|
|
|
export default PageContent;
|