UNPKG

itmar-block-packages

Version:

Common React components for WordPress custom blocks, now fully TypeScript-ready.

10 lines (7 loc) 375 B
import { jsx } from 'react/jsx-runtime'; import { Suspense } from '@wordpress/element'; function BlockEditWrapper({ lazyComponent: LazyComponent, ...props }) { return (jsx(Suspense, { fallback: jsx("div", { children: "Loading..." }), children: jsx(LazyComponent, { ...props }) })); } export { BlockEditWrapper as default }; //# sourceMappingURL=BlockEditWrapper.js.map