import React from 'react'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { injectIntl } from '@edx/frontend-platform/i18n'; import { Avatar } from '@edx/paragon'; import { ThreadType } from '../../../data/constants'; import { AuthorLabel } from '../../common'; import ActionsDropdown from '../../common/ActionsDropdown'; import { selectAuthorAvatars } from '../../posts/data/selectors'; import { commentShape } from './proptypes'; function CommentHeader({ comment, postType, actionHandlers, }) { const authorAvatars = useSelector(selectAuthorAvatars(comment.author)); return (