mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 06:13:05 +08:00
18 lines
515 B
JavaScript
18 lines
515 B
JavaScript
import React from 'react';
|
|
import {I18n} from '../coral-framework';
|
|
import translations from './translations.json';
|
|
|
|
const name = 'coral-plugin-replies';
|
|
|
|
const ReplyButton = (props) => <button
|
|
className={`${name}-reply-button`}
|
|
onClick={() => props.updateItem(props.id || props.parent_id, 'showReply', true, 'comments')}>
|
|
<i className={`${name}-icon material-icons`}
|
|
aria-hidden={true}>reply</i>
|
|
{lang.t('reply')}
|
|
</button>;
|
|
|
|
export default ReplyButton;
|
|
|
|
const lang = new I18n(translations);
|