import React from 'react';
import t from 'coral-framework/services/i18n';
import {ReplyButton} from 'coral-plugin-replies';
import PubDate from 'coral-plugin-pubdate/PubDate';
import Slot from 'coral-framework/components/Slot';
import AuthorName from 'coral-plugin-author-name/AuthorName';
import styles from 'coral-embed-stream/src/components/Comment.css';

export const FakeComment = ({username, created_at, comment}) => (
  <div className={`comment ${styles.Comment}`} style={{marginLeft: 0 * 30}}>
    <hr aria-hidden={true} />
    <AuthorName author={{name: username}} />
    <PubDate created_at={created_at} />
    <Slot comment={comment} />
    <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'}>
            {t('like')}
          </span>
          <i
            className={`${'coral-plugin-likes'}-icon material-icons`}
            aria-hidden={true}
          >
            thumb_up
          </i>
        </button>
      </div>
      <ReplyButton
        onClick={() => {}}
        parentCommentId={'commentID'}
        currentUserId={{}}
      />
    </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`}
          >
            {t('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`}
          >
            {t('report')}
          </span>
          <i
            className={`${'coral-plugin-flags'}-icon material-icons`}
            aria-hidden={true}
          >
            flag
          </i>
        </button>
      </div>
    </div>
  </div>
);

