mirror of https://github.com/msgbyte/tailchat
feat: bbcode解释器增加boldtag
parent
6c2cb25584
commit
711bf187c3
@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
import type { TagProps } from '../bbcode/type';
|
||||
|
||||
export const BoldTag: React.FC<TagProps> = React.memo((props) => {
|
||||
const { node } = props;
|
||||
const text = node.content.join('');
|
||||
|
||||
return <b>{text}</b>;
|
||||
});
|
||||
BoldTag.displayName = 'BoldTag';
|
Loading…
Reference in New Issue