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