/* eslint-disable import/no-absolute-path */ /* eslint-disable jsx-a11y/media-has-caption */ import React from 'react'; import PropTypes from 'prop-types'; import { withTracker } from 'meteor/react-meteor-data'; import { withTranslation } from 'react-i18next'; import { Meteor } from 'meteor/meteor'; import moment from 'moment'; import CommentsCollection from '/imports/api/Comments/Comments'; import './Comments.scss'; function MediaEmbed({ media }) { if (!media || !media.content) return null; if (media.type === 'image') { return ; } if (media.type === 'youtube') { return (