const PropTypes = require('prop-types'); const React = require('react'); const FormattedDate = require('react-intl').FormattedDate; const FormattedMessage = require('react-intl').FormattedMessage; const FormattedTime = require('react-intl').FormattedTime; const FlexRow = require('../../components/flex-row/flex-row.jsx'); require('./mod-info.scss'); const ModInfo = props => (
{props.authorUsername &&
{/* @todo: these profile links should be made into a shared library function */} {props.authorUsername}
} {/* eslint-disable react/jsx-sort-props */} {props.revisedDate &&
{' - '}
} {/* eslint-enable react/jsx-sort-props */}
); ModInfo.propTypes = { authorUsername: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]), revisedDate: PropTypes.string, scripts: PropTypes.number, sprites: PropTypes.number }; module.exports = ModInfo;