UNPKG

@zohodesk/dot

Version:

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

22 lines 720 B
import React from 'react'; import { StatusText_defaultProps } from "./props/defaultProps"; import { StatusText_propTypes } from "./props/propTypes"; import style from "../../../list/SecondaryText/SecondaryText.module.css"; export default function StatusText(props) { let { className, color, text, dataTitle, fontWeight, dataId } = 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;