UNPKG

@zohodesk/dot

Version:

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

39 lines (35 loc) 959 B
import React from 'react'; import { propTypes } from "./props/propTypes"; import style from "./ListGroup.module.css"; export default class ListGroup extends React.Component { constructor(props) { super(props); } render() { let { isOrder, data } = this.props; if (isOrder) { return /*#__PURE__*/React.createElement("ol", { className: style.container, type: "1" }, data.map((text, index) => /*#__PURE__*/React.createElement("li", { className: style.orderData, key: index }, text))); } return /*#__PURE__*/React.createElement("ul", { className: style.container }, data.map((text, index) => /*#__PURE__*/React.createElement("li", { className: style.unOrderData, key: index }, text))); } } ListGroup.propTypes = propTypes; // if (__DOCS__) { // ListGroup.docs = { // componentGroup: 'HelpTips', // folderName: 'Setup' // }; // }