import * as React from 'react' import * as Styled from './index.style' import { PostData } from '../index' import { PostConfig } from '../../type' import { DEFAULT_IMG, formatVideoDuration, navigate } from '../utils' import Image from '../image' interface Props { data?: PostData[]; postConfig: PostConfig; } class Theme3 extends React.Component { public render() { const { data, postConfig } = this.props return ( { data?.map((item, index) => ( { item.type === 1 && !item.imageUrl ? ( <> { item.title ? ( {item.title} ) : null } {item.digest} { !postConfig.hideUser ? (
{item.blogInfo?.blogNickName}
) : null } ) : ( <> { item.type === 3 || item.type === 4 ? ( play ) : null } { item.extraData?.duration ? ( {formatVideoDuration(item.extraData?.duration)} ) : null } {item.title} { !postConfig.hideUser ? ( {item.blogInfo?.blogNickName} ) : null } ) }
)) }
) } } export default React.memo(Theme3)