import React from 'react'; import { Button } from 'antd-mobile'; import Icon from 'components/Icon'; import styles from './item.less'; const Index = ({ id, image, title, like, share, buttonLable, onClickLike, onClickShare, onClickButton, showCnt=true }) => { const showCntStyle={display:showCnt?'flex':'none'} const showActionStyle={"flexDirection":showCnt?'row':'row-reverse'} return (
{title}
onClickLike(id)} size="xxs" color={`${like === 1 ? '#ff7b7b' : '#cccccc'}`} type={require('public/images/like.svg')} />
收藏
onClickShare(id)} size="xxs" color={`${share === 1 ? '#ff7b7b' : '#cccccc'}`} type={require('public/images/share.svg')} />
分享
); }; export default Index;