# friends/2.8.2/blocks/message/src/index.js

Friends, version 2.8.2. 25 lines.

- Page: https://pluginprobe.com/plugins/friends/2.8.2/code/blocks/message/src/index.js
- Raw: https://pluginprobe.com/plugins/friends/2.8.2/raw/blocks/message/src/index.js
- Modified: 2021-08-17T14:36:10+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/friends/2.8.2/code/blocks/message/src/index.js#L10-L20`.

```javascript
import { __ } from '@wordpress/i18n';
import { registerBlockType } from '@wordpress/blocks';
import { useBlockProps } from '@wordpress/block-editor';
import { InnerBlocks } from "@wordpress/block-editor";

registerBlockType( 'friends/message', {
	apiVersion: 2,
	edit: function() {
		return (
			<div { ...useBlockProps() }>
				<InnerBlocks />
			</div>
			);
	},
	save: () => {
		const blockProps = useBlockProps.save();

		return (
			<div { ...blockProps }>
				<InnerBlocks.Content />
			</div>
			);
	},
} );

```
