import { Localized } from "fluent-react/compat"; import * as React from "react"; import { StatelessComponent } from "react"; import { PropTypesOf } from "talk-framework/types"; import { Button, HorizontalGutter } from "talk-ui/components"; import CommentContainer from "../containers/CommentContainer"; import PostCommentFormContainer from "../containers/PostCommentFormContainer"; import ReplyListContainer from "../containers/ReplyListContainer"; import UserBoxContainer from "../containers/UserBoxContainer"; import PostCommentFormFake from "./PostCommentFormFake"; import * as styles from "./Stream.css"; export interface StreamProps { asset: { id: string; isClosed?: boolean; } & PropTypesOf["asset"] & PropTypesOf["asset"]; comments: ReadonlyArray< { id: string } & PropTypesOf["comment"] & PropTypesOf["comment"] >; onLoadMore?: () => void; hasMore?: boolean; disableLoadMore?: boolean; user: PropTypesOf["user"] | null; } const Stream: StatelessComponent = props => { return ( {props.user ? ( ) : ( )} {props.comments.map(comment => ( ))} {props.hasMore && ( )} ); }; export default Stream;