import React from 'react' ; import type { IComment , ITag } from './interface' ; function Tag ( props ) { return < p > < span className = { `tsd-comment-tag tsd-comment-tag-${ props . tag }` } > { props . tag } < /span>{props.text} < /p>; } export default function Comment ( props ) { return < blockquote className = "tsd-comment" > { props . shortText && < p > { props . shortText } < /p>} { props . tags && props . tags . map ( ( tag ) => { return < Tag key = { tag . tag } { ... tag } />; } ) } < /blockquote>; }