File size: 406 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import clsx from 'clsx';
import { html } from '../indices-to-html';
import { p } from './functions';

export const CommentBlock = ( { block, meta } ) => (
	<div
		className={ clsx( 'wpnc__comment', {
			'comment-other': meta.ids.comment !== block.meta.ids.comment,
			'comment-self': meta.ids.comment === block.meta.ids.comment,
		} ) }
	>
		{ p( html( block ) ) }
	</div>
);

export default CommentBlock;