2024-07-26 04:40:18 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { lazy, Suspense } from '@wordpress/element';
|
|
|
|
|
|
|
|
const SettingsPaymentsMainChunk = lazy(
|
|
|
|
() =>
|
|
|
|
import(
|
|
|
|
/* webpackChunkName: "settings-payments-main" */ './settings-payments-main'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2024-07-26 12:55:19 +00:00
|
|
|
const SettingsPaymentsOfflineChunk = lazy(
|
|
|
|
() =>
|
|
|
|
import(
|
|
|
|
/* webpackChunkName: "settings-payments-offline" */ './settings-payments-offline'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
const SettingsPaymentsWooCommercePaymentsChunk = lazy(
|
|
|
|
() =>
|
|
|
|
import(
|
|
|
|
/* webpackChunkName: "settings-payments-woocommerce-payments" */ './settings-payments-woocommerce-payments'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2024-07-26 04:40:18 +00:00
|
|
|
export const SettingsPaymentsMainWrapper: React.FC = () => {
|
|
|
|
return (
|
2024-07-26 12:55:19 +00:00
|
|
|
<Suspense fallback={ <div>Loading main settings...</div> }>
|
2024-07-26 04:40:18 +00:00
|
|
|
<SettingsPaymentsMainChunk />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
};
|
2024-07-26 12:55:19 +00:00
|
|
|
|
|
|
|
export const SettingsPaymentsOfflineWrapper: React.FC = () => {
|
|
|
|
return (
|
|
|
|
<Suspense fallback={ <div>Loading offline settings...</div> }>
|
|
|
|
<SettingsPaymentsOfflineChunk />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const SettingsPaymentsWooCommercePaymentsWrapper: React.FC = () => {
|
|
|
|
return (
|
|
|
|
<Suspense
|
|
|
|
fallback={ <div>Loading WooCommerce Payments settings...</div> }
|
|
|
|
>
|
|
|
|
<SettingsPaymentsWooCommercePaymentsChunk />
|
|
|
|
</Suspense>
|
|
|
|
);
|
|
|
|
};
|