Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if ( result_type !== 'post' ) {
return null;
}
const noMatchingContent = ! highlight.content || highlight.content[ 0 ] === '';
return (
<div>
<span>
{ new Date( fields.date.split( ' ' )[ 0 ] ).toLocaleDateString( locale, {
dateStyle: 'short',
} ) }
</span>
<h3>
<a href="{">
</a></h3><a href="{">
{ noMatchingContent ? this.renderNoMatchingContent() : this.renderMatchingContent() }
</a></div><a href="{">
);
}
}</a>