mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 19:56:27 +09:00
20 lines
458 B
JavaScript
20 lines
458 B
JavaScript
import { registerBlockType } from '@wordpress/blocks';
|
|
import ServerSideRender from '@wordpress/server-side-render';
|
|
import { useBlockProps } from '@wordpress/block-editor';
|
|
|
|
registerBlockType('um-block/um-password-reset', {
|
|
edit: function (props) {
|
|
const blockProps = useBlockProps();
|
|
|
|
return (
|
|
<div {...blockProps}>
|
|
<ServerSideRender block="um-block/um-password-reset" />
|
|
</div>
|
|
);
|
|
|
|
},
|
|
save: function save(props) {
|
|
return null;
|
|
}
|
|
});
|