@zohodesk/dot
Version:
In this Library, we Provide Some Basic Components to Build Your Application
23 lines • 664 B
JavaScript
import React from 'react';
import { propTypes } from "./props/propTypes";
import style from "../../../list/SentimentStatus/SentimentStatus.module.css";
import { Icon } from '@zohodesk/icons';
export default function SentimentStatus(props) {
let {
type,
dataTitle
} = props;
const icons = {
neutral: 'ZD-botNeutral',
negative: 'ZD-botNegative',
positive: 'ZD-botPositive'
};
return /*#__PURE__*/React.createElement("div", {
className: style.container,
"data-title": dataTitle
}, /*#__PURE__*/React.createElement(Icon, {
name: icons[type],
iconClass: style.sentimentIcon
}));
}
SentimentStatus.propTypes = propTypes;