const classNames = require('classnames'); const PropTypes = require('prop-types'); const React = require('react'); const FlexRow = require('../flex-row/flex-row.jsx'); const RelativeTime = require('../relative-time/relative-time.jsx'); require('./social-message.scss'); const SocialMessage = props => (
{typeof props.iconSrc === 'undefined' ? [] : [ {props.iconAlt} ]}
{props.children}
); SocialMessage.propTypes = { as: PropTypes.string, // eslint-disable-line react/no-unused-prop-types children: PropTypes.node, className: PropTypes.string, datetime: PropTypes.string.isRequired, iconAlt: PropTypes.string, iconSrc: PropTypes.string, imgClassName: PropTypes.string }; SocialMessage.defaultProps = { as: 'li' }; module.exports = SocialMessage;