{!is.undefined(contentType)
? this.renderObject({ objectURL, contentType })
: null}
{this.props.onSave ? (
) : null}
{this.props.onPrevious ? (
) : null}
{this.props.onNext ? (
) : null}
);
}
private renderObject = ({
objectURL,
contentType,
}: {
objectURL: string;
contentType: MIME.MIMEType;
}) => {
const isImage = GoogleChrome.isImageTypeSupported(contentType);
if (isImage) {
return (