Files
talk/client/coral-plugin-replies/ReplyButton.js
T
2016-11-01 15:06:09 -07:00

24 lines
520 B
JavaScript

import React from 'react'
import {I18n} from '../coral-framework'
const name = 'coral-plugin-replies'
const ReplyButton = (props) => <button
className={name + '-reply-button'}
onClick={(e) => props.updateItem(props.item_id || props.parent_id, 'showReply', true)}>
<i className={name + '-icon material-icons'}
aria-hidden={true}>reply</i>
{lang.t('reply')}
</button>
export default ReplyButton
const lang = new I18n({
en: {
'reply': 'Reply'
},
es: {
'reply': '¡traduceme!'
}
})