templates.js
398 Bytes
import css from './css.less';
const Templates = (props) => {
return (
<div className={css.tmpsWrap}>
{
props.templates && props.templates.map(itm => (
<div className={css.itm} key={itm.id} onClick={() => {
props.addInvitation(itm);
}}><img src={itm.invitationPath} alt='' /></div>
))
}
</div>
)
}
export default Templates;