mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 22:04:50 +08:00
74 lines
2.4 KiB
JavaScript
74 lines
2.4 KiB
JavaScript
import React from 'react';
|
|
import translations from '../translations';
|
|
import {ReplyButton} from 'coral-plugin-replies';
|
|
import PubDate from 'coral-plugin-pubdate/PubDate';
|
|
import I18n from 'coral-framework/modules/i18n/i18n';
|
|
import AuthorName from 'coral-plugin-author-name/AuthorName';
|
|
import Content from 'coral-plugin-commentcontent/CommentContent';
|
|
import styles from 'coral-embed-stream/src/components/Comment.css';
|
|
|
|
const lang = new I18n(translations);
|
|
|
|
export const FakeComment = ({username, created_at, body}) => (
|
|
<div className={`comment ${styles.Comment}`} style={{marginLeft: 0 * 30}}>
|
|
<hr aria-hidden={true} />
|
|
<AuthorName author={{name: username}} />
|
|
<PubDate created_at={created_at} />
|
|
<Content body={body} />
|
|
<div className="commentActionsLeft comment__action-container">
|
|
<div className={`${'coral-plugin-likes'}-container`}>
|
|
<button className={'coral-plugin-likes-button'}>
|
|
<span className={'coral-plugin-likes-button-text'}>
|
|
{lang.t('like')}
|
|
</span>
|
|
<i
|
|
className={`${'coral-plugin-likes'}-icon material-icons`}
|
|
aria-hidden={true}
|
|
>
|
|
thumb_up
|
|
</i>
|
|
</button>
|
|
</div>
|
|
<ReplyButton
|
|
onClick={() => {}}
|
|
parentCommentId={'commentID'}
|
|
currentUserId={{}}
|
|
banned={false}
|
|
/>
|
|
</div>
|
|
<div className="commentActionsRight comment__action-container">
|
|
<div className="coral-plugin-permalinks-container">
|
|
<button className="coral-plugin-permalinks-button">
|
|
<span
|
|
className={`comment__action-button comment__action-button--nowrap ${'coral-plugin-flags'}-button-text`}
|
|
>
|
|
{lang.t('permalink.permalink')}
|
|
</span>
|
|
<i
|
|
className="coral-plugin-permalinks-icon material-icons"
|
|
aria-hidden={true}
|
|
>
|
|
link
|
|
</i>
|
|
</button>
|
|
</div>
|
|
<div className={`${'coral-plugin-flags'}-container`}>
|
|
<button className={`${'coral-plugin-flags'}-button`}>
|
|
<span
|
|
className={`comment__action-button comment__action-button--nowrap ${'coral-plugin-flags'}-button-text`}
|
|
>
|
|
{lang.t('report')}
|
|
</span>
|
|
<i
|
|
className={`${'coral-plugin-flags'}-icon material-icons`}
|
|
aria-hidden={true}
|
|
>
|
|
flag
|
|
</i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
|