import React from 'react'; import moment from 'moment'; import { Avatar } from 'antd'; import styles from './index.less'; export interface ApplicationsProps { data: { content?: string; updatedAt?: any; avatar?: string; owner?: string; href?: string; }; } const ArticleListContent: React.SFC = ({ data: { content, updatedAt, avatar, owner, href }, }) => (
{content}
{owner} 发布在 {href} {moment(updatedAt).format('YYYY-MM-DD HH:mm')}
); export default ArticleListContent;