import { Component } from 'inferno'; import { Link } from 'inferno-router'; import { Post } from '../interfaces'; import { PostListing } from './post-listing'; import { T } from 'inferno-i18next'; interface PostListingsProps { posts: Array; showCommunity?: boolean; } export class PostListings extends Component { constructor(props: any, context: any) { super(props, context); } render() { return (
{this.props.posts.length > 0 ? this.props.posts.map(post => ) : <>
#
{this.props.showCommunity !== undefined &&
##
} }
) } }