// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import React, {FC} from 'react' import {IntlShape, injectIntl} from 'react-intl' import mutator from '../mutator' import {IBlock} from '../blocks/block' import Menu from '../widgets/menu' import MenuWrapper from '../widgets/menuWrapper' import './comment.scss' type Props = { comment: IBlock username: string userImageUrl: string intl: IntlShape } const Comment: FC = (props: Props) => { const {comment, username, userImageUrl, intl} = props return (
{username}
{(new Date(comment.createAt)).toLocaleTimeString()}
{'...'}
mutator.deleteBlock(comment)} />
{comment.title}
) } export default injectIntl(Comment)