import React from 'react' import styles from './post.less' import * as antd from 'antd' import * as ycore from 'ycore' import Icon from '@ant-design/icons' import {MediaPlayer, PostCard} from 'components' const VerifiedBadge = () => ( ) export default class SecRenderPost extends React.Component{ renderContent(payload){ const { id, postText, postFile_full, post_time, publisher} = payload if (!postFile_full) { return(
) } return (
{postFile_full? : null} {postText?

: null}
) } render(){ const payload = this.props.payload if (!payload) { return (

This post not exists!!!

) } const { id, postText, postFile_full, post_time, publisher} = payload return(

{publisher.username} {ycore.booleanFix(publisher.verified)? : null}

{post_time} {ycore.IsThisUser.dev()? `| #${id}` : null}

{this.renderContent(payload)}
) } }