import { useTranslation } from 'react-i18next';

import { useTheme } from '@mui/material';
import IconComment from '@mui/icons-material/Comment';

import { labelComment } from '../../../translatedLabels';
import EventAnnotations from '../EventAnnotations';
import { Args } from '../models';

const CommentAnnotations = (props: Args): JSX.Element => {
  const { t } = useTranslation();
  const theme = useTheme();

  return (
    <EventAnnotations
      Icon={IconComment}
      ariaLabel={t(labelComment)}
      color={theme.palette.primary.main}
      type="comment"
      {...props}
    />
  );
};

export default CommentAnnotations;
