import * as React from "react"; import { StatelessComponent } from "react"; import Logo from "talk-stream/components/Logo"; import CommentContainer from "talk-stream/containers/CommentContainer"; import PostCommentFormContainer from "talk-stream/containers/PostCommentFormContainer"; import { Button } from "talk-ui/components"; export interface StreamProps { id: string; isClosed: boolean; comments: ReadonlyArray<{ id: string }> | null; onLoadMore: () => void; hasMore: boolean; } const Stream: StatelessComponent = props => { if (props.comments === null) { // TODO: (@cvle) What's the reason for this being null? return
Comments unavailable
; } return (
{props.comments.map(comment => ( ))} {props.hasMore && ( )}
); }; export default Stream;