import React, { PureComponent } from 'react'; import { timestamp, linkify } from '../util'; export default class Search extends PureComponent { render() { const { result } = this.props; const style = { paddingLeft: `${window.messageIndent}px`, textIndent: `-${window.messageIndent}px` }; return (
{timestamp(new Date(result.time * 1000))} {' '} {result.from} {' '}{linkify(result.content)}
); } }