Download wp-calypso/apps/notifications/src/panel/templates/block-comment.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/templates/block-comment.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/apps/notifications/src/panel/templates/block-comment.jsx
-
curl -L -o block-comment.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/apps/notifications/src/panel/templates/block-comment.jsx
406 Bytes
| 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; | |