@zohodesk/dot
Version:
In this Library, we Provide Some Basic Components to Build Your Application
34 lines (32 loc) • 934 B
JavaScript
import React, { Component } from 'react';
import { StatusText_defaultProps } from "./props/defaultProps";
import { StatusText_propTypes } from "./props/propTypes";
import style from "./SecondaryText.module.css";
export default class StatusText extends Component {
constructor(props) {
super(props);
}
render() {
let {
className,
color,
text,
dataTitle,
fontWeight,
dataId
} = this.props;
return /*#__PURE__*/React.createElement("div", {
className: `${style.statusText} ${style[color]} ${style[`font_${fontWeight}`]} ${className ? className : ''}`,
"data-title": dataTitle,
"data-id": dataId,
"data-test-id": dataId
}, text);
}
}
StatusText.propTypes = StatusText_propTypes;
StatusText.defaultProps = StatusText_defaultProps; // if (__DOCS__) {
// StatusText.docs = {
// folderName: 'List',
// componentGroup: 'StatusText'
// };
// }