import React, {PropTypes} from 'react'; import {Icon} from '../coral-ui'; import styles from './Comment.css'; import PubDate from '../coral-plugin-pubdate/PubDate'; import Content from '../coral-plugin-commentcontent/CommentContent'; const Comment = props => { return (

Story: {props.asset.title ? props.asset.title : props.asset.url}

); }; Comment.propTypes = { comment: PropTypes.shape({ id: PropTypes.string, body: PropTypes.string }).isRequired, asset: PropTypes.shape({ url: PropTypes.string, title: PropTypes.string }).isRequired }; export default Comment;