UNPKG

@zohodesk/dot

Version:

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

29 lines (28 loc) 927 B
import React, { Component } from 'react'; import { SmartIcon_propTypes } from "./props/propTypes"; import style from "./Icons.module.css"; import { Icon } from '@zohodesk/icons'; import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css'; export default class SmartIcon extends Component { render() { let { onClick, dataId, dataTitle, iconClass, className } = this.props; return /*#__PURE__*/React.createElement("button", { onClick: onClick, className: `${style.iconStyle} ${style.blueHover} ${className ? className : ''} ${btnStyle.buttonReset}`, "data-id": dataId, "data-test-id": dataId, "data-title": dataTitle, "aria-label": dataTitle }, /*#__PURE__*/React.createElement(Icon, { name: "ZD-TK-peek", iconClass: iconClass ? iconClass : '' })); } } SmartIcon.propTypes = SmartIcon_propTypes;