import React from "react";
import {mobileCheck, decodeEmoji, clearHtml, emailify, mentionify, urlify} from "../utils/helpers";

//strings

//actions

//components
import Container from "../../../Talk-ui-kit/src/container";
import {Text} from "../../../Talk-ui-kit/src/typography";

//styling

//statics

//functions


export default function ({message}) {
  return <Container userSelect={mobileCheck() ? "none" : "text"} onDoubleClick={e => e.stopPropagation()}>
    <Text isHTML wordWrap="breakWord" whiteSpace="preWrap" color="text" dark>
      {mentionify(emailify(decodeEmoji(urlify(clearHtml(message)))))}
    </Text>
  </Container>
}