File "edit.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/core/modules/core/entries/profile-block/edit.js
File size: 633 bytes
MIME-type: text/x-java
Charset: utf-8
/**
* WordPress dependencies
*/
import { useBlockProps, BlockIcon } from '@wordpress/block-editor';
import { Placeholder } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { getBlockType } from '@wordpress/blocks';
export default function Edit( { name } ) {
const { icon, title } = getBlockType( name );
return (
<div { ...useBlockProps() }>
<Placeholder
icon={ <BlockIcon icon={ icon } showColors /> }
label={ title }
instructions={ __( 'Users can adjust their User Security profile settings. This block does not provide any controls.', 'better-wp-security' ) }
/>
</div>
);
}