mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 23:09:26 +08:00
24 lines
515 B
JavaScript
24 lines
515 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.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!'
|
|
}
|
|
})
|