{"size": 415, "ext": "js", "max_stars_repo_path": "client/components/parsed-article.js", "max_stars_repo_name": "any-consolation/any-consolation", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "client/components/parsed-article.js", "max_issues_repo_name": "any-consolation/any-consolation", "max_issues_repo_issues_event_min_datetime": "2018-05-31T20:35:40.000Z", "max_issues_repo_issues_event_max_datetime": "2018-05-31T20:35:40.000Z", "max_forks_repo_path": "client/components/parsed-article.js", "max_forks_repo_name": "any-consolation/any-consolation", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 21.8421052632, "max_line_length": 72, "alphanum_fraction": 0.534939759}
import React, { Component } from 'react'
import FloatingImage from './floating-img'

const ParsedArticle = props => (
    <div>
        {props.parsedContentArray.map(obj => {

            if (obj.type === 'text') {
                return obj.captured
            } else {
                return <FloatingImage src={obj.url} float={obj.float} />
            }

        })}
    </div>
)

export default ParsedArticle
