UNPKG

@zohodesk/dot

Version:

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

32 lines 875 B
import React from 'react'; import { defaultProps } from "./props/defaultProps"; import { propTypes } from "./props/propTypes"; import style from "../../PlusIcon/PlusIcon.module.css"; import AvatarIcon from "../avatar/AvatarIcon/AvatarIcon"; export default function PlusIcon(props) { let { dataId, iconName, iconClass, iconSize, size, onClick, title, customClass } = props; return /*#__PURE__*/React.createElement("span", { className: style.container, onClick: onClick, "data-id": dataId, "data-test-id": dataId, "data-title": title }, /*#__PURE__*/React.createElement(AvatarIcon, { name: iconName, iconClass: `${iconClass} ${style.icon}`, iconSize: iconSize, size: size, className: `${customClass} ${style.plusIcon}` })); } PlusIcon.defaultProps = defaultProps; PlusIcon.propTypes = propTypes;