import * as React from "react"; import { IconProp } from "@fortawesome/fontawesome-svg-core"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; interface IMessageLineComponentProps { text: string; color?: string; icon?: IconProp; } export class MessageLineComponent extends React.Component { constructor(props: IMessageLineComponentProps) { super(props); } render() { if (this.props.icon) { return (
{this.props.text}
); } return (
{this.props.text}
); } }