import * as React from 'react'; import PostListItem from './PostListItem'; import { MutedText } from '../shared/CustomTexts'; import IPostJSON from '../../interfaces/json/IPost'; import IBoard from '../../interfaces/IBoard'; interface Props { posts: Array; boards: Array; } const PostList = ({ posts, boards }: Props) => (
{ posts.length > 0 ? posts.map((post, i) => ( board.id === post.board_id).name} key={i} /> )) : There are no posts that have this status. }
); export default PostList;