import { Localized } from "fluent-react/compat"; import * as React from "react"; import { StatelessComponent } from "react"; import { Button, Flex } from "talk-ui/components"; import CommentContainer from "../containers/CommentContainer"; import PostCommentFormContainer from "../containers/PostCommentFormContainer"; import ReplyListContainer from "../containers/ReplyListContainer"; import AuthContainer from "../containers/AuthContainer"; import * as styles from "./Stream.css"; export interface StreamProps { assetID: string; isClosed?: boolean; comments: ReadonlyArray<{ id: string }>; onLoadMore?: () => void; hasMore?: boolean; disableLoadMore?: boolean; } const Stream: StatelessComponent = props => { return (
{props.comments.map(comment => ( ))} {props.hasMore && ( )}
); }; export default Stream;