import React, { Component } from 'react' import { SpeakerIcon } from '../../nav/viewer.icons' import { MediaCitation } from '../components.media' export const MediaImage = ({ paragraph, media, currentParagraph, currentAnnotation, onAnnotationClick }) => { if (!media.lookup) return
const annotation = paragraph.annotations[0] const item = media.lookup[annotation.settings.media_id] if (!item) return
Media not found: {annotation.settings.media_id}
if (annotation.settings.fullscreen) { return (
onAnnotationClick(e, paragraph, annotation)}>
{SpeakerIcon}
) } else { return (
onAnnotationClick(e, paragraph, annotation)}>
{SpeakerIcon}
) } }