itmar-block-packages
Version:
Common React components for WordPress custom blocks, now fully TypeScript-ready.
14 lines (9 loc) • 495 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var jsxRuntime = require('react/jsx-runtime');
var element = require('@wordpress/element');
function BlockEditWrapper({ lazyComponent: LazyComponent, ...props }) {
return (jsxRuntime.jsx(element.Suspense, { fallback: jsxRuntime.jsx("div", { children: "Loading..." }), children: jsxRuntime.jsx(LazyComponent, { ...props }) }));
}
exports.default = BlockEditWrapper;
//# sourceMappingURL=BlockEditWrapper.js.map