const React = require('react'); const FormattedMessage = require('react-intl').FormattedMessage; const FlexRow = require('../../components/flex-row/flex-row.jsx'); const Avatar = require('../../components/avatar/avatar.jsx'); const projectShape = require('./projectshape.jsx').projectShape; const thumbnailUrl = require('../../lib/user-thumbnail'); const RemixCredit = props => { const projectInfo = props.projectInfo; if (Object.keys(projectInfo).length === 0) return null; if (!projectInfo.author) return null; return (
{projectInfo.author.username} ), projectLink: ( {projectInfo.title} ) }} />
); }; RemixCredit.propTypes = { projectInfo: projectShape }; module.exports = RemixCredit;