import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Avatar } from '@edx/paragon'; import { AvatarOutlineAndLabelColors } from '../../../../data/constants'; import { AuthorLabel } from '../../../common'; import { useAlertBannerVisible } from '../../../data/hooks'; const CommentHeader = ({ author, authorLabel, abuseFlagged, closed, createdAt, lastEdit, }) => { const colorClass = AvatarOutlineAndLabelColors[authorLabel]; const hasAnyAlert = useAlertBannerVisible({ author, abuseFlagged, lastEdit, closed, }); return (