import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import {FormattedMessage} from 'react-intl'; import UserAvatar from './user-avatar.jsx'; import styles from './author-info.css'; const ActualAuthorInfo = ({ className, imageUrl, projectTitle, // TODO: use userId to link to user's profile userId, // eslint-disable-line no-unused-vars username }) => (

{projectTitle}

{username} }} />
); ActualAuthorInfo.propTypes = { className: PropTypes.string, imageUrl: PropTypes.string, projectTitle: PropTypes.string, userId: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), username: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]) }; const AuthorInfo = ({projectId, ...props}) => ( projectId ? ( ) : ); AuthorInfo.propTypes = { projectId: PropTypes.string }; export default AuthorInfo;