UNPKG

@zohodesk/dot

Version:

In this Library, we Provide Some Basic Components to Build Your Application

41 lines (39 loc) 1.2 kB
import React, { Component } from 'react'; import { StatusText_defaultProps } from "./props/defaultProps"; import { StatusText_propTypes } from "./props/propTypes"; import Typography from '@zohodesk/components/es/Typography/Typography'; import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common'; import style from "./SecondaryText.module.css"; export default class StatusText extends Component { constructor(props) { super(props); } render() { let { className, color, text, dataTitle, fontWeight, dataId, isHighlighted, highlightData } = this.props; return /*#__PURE__*/React.createElement(Typography, { $ui_className: `${style[color]} ${className ? className : ''}`, $ui_weight: fontWeight, $flag_dotted: true, $ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT, $i18n_dataTitle: dataTitle, customId: dataId, testId: dataId }, text); } } StatusText.propTypes = StatusText_propTypes; StatusText.defaultProps = StatusText_defaultProps; // if (__DOCS__) { // StatusText.docs = { // folderName: 'List', // componentGroup: 'StatusText' // }; // }