import React from 'react'; // import { InjectedIntlProps, injectIntl } from 'react-intl'; // import EmptyIcon from '@material-ui/icons/ForumRounded'; // import List from '@material-ui/core/List'; import Typography from '@material-ui/core/Typography'; // import Grid from '@material-ui/core/Grid'; // import { connect } from 'react-redux'; // import injectReducer from 'utils/injectReducer'; // import reducer from 'CommentSection/reducer'; // import { compose } from 'redux'; import { // ContainerState, IComment, IUser, // RootState, } from 'CommentSection/types'; // import CommentsSection from 'CommentSection'; // import { withStyles } from '@material-ui/styles'; // import { // makeSelectComments, makeSelectUsers, makeSelectThreadId, makeSelectReplyUser, // } from 'CommentSection/selectors'; // import { createStructuredSelector } from 'reselect'; // import CommentItem from 'CommentSection/components/CommentItem'; // import { AstraTheme } from 'Themes/themes'; // import Typography from '@material-ui/core/Typography';s // import messages from 'CommentSection/messages'; export interface ICommentsSectionState { comments: IComment[]; } export interface ICommentsSectionProps { comments: IComment[]; users: IUser[]; threadId: string; replyUser: string; } // export const StyledEmptyContainer = ({ intl }) => ( //
// // // {/* {intl.formatMessage(messages.emptyStateHeader)} */} // EMPTY // // // // // {/* {intl.formatMessage(messages.emptyStateHintIntro)} */} // EMPTY // // // // // {/* {intl.formatMessage(messages.emptyStateHint)} */} // EMPTY // // // //
// ); export const CommentList = ({ comments }) => { const commentList = comments || []; return (
  • {commentList.map((child, key) => { return ( // {child.message} //

    {child.message}

    ); })}
  • ); }; export type AllProps = ICommentsSectionProps; // & InjectedIntlProps; export class CommentListElement extends React.Component { public render() { return (
    { this.props.comments.length === 0 ? // : null : }
    ); } } // export const CommentsSectionWithIntl = injectIntl(CommentListElement, { withRef: true }); export default CommentListElement;