import React, { memo } from 'react'; import { timestamp, linkify } from 'utils'; const SearchResult = ({ result }) => { const style = { paddingLeft: `${window.messageIndent}px`, textIndent: `-${window.messageIndent}px` }; return (
{timestamp(new Date(result.time * 1000))} {' '} {result.from} {linkify(result.content)}
); }; export default memo(SearchResult);