mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
18 lines
419 B
TypeScript
18 lines
419 B
TypeScript
import React, { FC } from 'react';
|
|
import { ICommentBlockProps } from '~/constants/comment';
|
|
import styles from './styles.module.scss';
|
|
|
|
interface IProps extends ICommentBlockProps {}
|
|
|
|
const CommentTextBlock: FC<IProps> = ({ block }) => {
|
|
return (
|
|
<div
|
|
className={styles.text}
|
|
dangerouslySetInnerHTML={{
|
|
__html: `<p>${block.content}</p>`,
|
|
}}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export { CommentTextBlock };
|