mirror of https://github.com/msgbyte/tailchat
				
				
				
			chore: 修复ci脚本问题
							parent
							
								
									6509f558c0
								
							
						
					
					
						commit
						e2ea551813
					
				@ -1,9 +1,11 @@
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import React, { PropsWithChildren } from 'react';
 | 
			
		||||
import type { TagProps } from '../bbcode/type';
 | 
			
		||||
 | 
			
		||||
export const PlainText: React.FC<TagProps> = React.memo((props) => (
 | 
			
		||||
  <pre style={{ display: 'inline', whiteSpace: 'break-spaces' }}>
 | 
			
		||||
    {props.children}
 | 
			
		||||
  </pre>
 | 
			
		||||
));
 | 
			
		||||
export const PlainText: React.FC<PropsWithChildren<TagProps>> = React.memo(
 | 
			
		||||
  (props) => (
 | 
			
		||||
    <pre style={{ display: 'inline', whiteSpace: 'break-spaces' }}>
 | 
			
		||||
      {props.children}
 | 
			
		||||
    </pre>
 | 
			
		||||
  )
 | 
			
		||||
);
 | 
			
		||||
PlainText.displayName = 'PlainText';
 | 
			
		||||
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue