// @flow import Button from 'component/button'; import Comment from 'component/comment'; import React from 'react'; import Spinner from 'component/spinner'; type Props = { uri: string, linkedCommentId?: string, threadCommentId?: string, numDirectReplies: number, // Total replies for parentId as reported by 'comment[replies]'. Includes blocked items. hasMore: boolean, supportDisabled: boolean, threadDepthLevel?: number, onShowMore?: () => void, // redux fetchedReplies: Array, claimIsMine: boolean, threadLevel: number, isFetching: boolean, }; export default function CommentsReplies(props: Props) { const { uri, fetchedReplies, claimIsMine, linkedCommentId, threadCommentId, numDirectReplies, hasMore, supportDisabled, threadDepthLevel, onShowMore, threadLevel, isFetching, } = props; return !numDirectReplies ? null : (
{fetchedReplies.length > 0 && hasMore && (isFetching ? ( ) : (
))}
); }