import React from 'react' const ShowPlaintext = (props) => { return
      {props.text
        ? props.text
        : props.diff
          ? diffToPre(props.diff)
          : null
      }
    
} export default ShowPlaintext function diffToPre (diff) { return diff.map((part, index) => ( part.added ? {part.value} : part.removed ? {part.value} : {part.value} )) }