custom-chatbot-app
Version:
This is my custom chatbot package for BuyersEdge
12 lines • 575 B
JavaScript
import React from 'react';
import { StyledBotMessageWrapper, StyledBotMessage, StyledBotTime } from './styled';
import { formatBotMessage } from '../../../../utils/formatBotMessage';
var BotMessage = function (_a) {
var message = _a.message;
return (React.createElement(StyledBotMessageWrapper, null,
React.createElement(StyledBotMessage, null, formatBotMessage(message.text)),
React.createElement(StyledBotTime, null,
React.createElement("span", null, message.timeStamp))));
};
export default BotMessage;
//# sourceMappingURL=index.js.map