@zohodesk/dot
Version:
In this Library, we Provide Some Basic Components to Build Your Application
25 lines • 833 B
JavaScript
import React from 'react';
import { SmartIcon_propTypes } from "./props/propTypes";
import style from "../../../list/Icons/Icons.module.css";
import { Icon } from '@zohodesk/icons';
import btnStyle from '@zohodesk/components/es/semantic/Button/semanticButton.module.css';
export default function SmartIcon(props) {
let {
onClick,
dataId,
dataTitle,
iconClass,
className
} = 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
}, /*#__PURE__*/React.createElement(Icon, {
name: "ZD-TK-peek",
iconClass: iconClass ? iconClass : ''
}));
}
SmartIcon.propTypes = SmartIcon_propTypes;