/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License.
 */ import * as React from 'react' ; import './MentionNode.css' ; interface EntityComponentProps { node : any ; attributes : any ; children : any ; } interface Props extends EntityComponentProps { } export const MentionNode = ( props ) => { const isCompleted = props . node . data . get ( 'completed' ) === true ; return ( < span className = { `mention-node ${ isCompleted ? 'mention-node--completed' : '' }` } { ... props . attributes } > { props . children } < /span>); } ; export default MentionNode ;