import React from 'react'; import PropTypes from 'prop-types'; import ReactMarkdown from 'react-markdown'; import moment from 'moment'; import { UserType } from './Types'; import Icon from './Icon'; import Avatar from './Avatar'; export default function Message(props) { const msg = props.data; const visitor = props.visitor; return (
{msg.photo &&

}
); } function Tags(props) { return props.data && props.data.map(tag => { return ({tag}) }) } Message.propTypes = { data: PropTypes.shape({ mid: PropTypes.number.isRequired, user: UserType, timestamp: PropTypes.string.isRequired, body: PropTypes.string }) }; Tags.propTypes = { data: PropTypes.array }