UNPKG

@adminium/ui

Version:

Arco Design React UI Library.

47 lines (42 loc) 1.34 kB
import _extends from "@babel/runtime/helpers/extends"; import React, { useContext } from 'react'; import { IconContext } from '../context'; function IconUnlockComponent(iconProps, ref) { const _useContext = useContext(IconContext), _useContext$prefixCls = _useContext.prefixCls, prefixCls = _useContext$prefixCls === void 0 ? 'arco' : _useContext$prefixCls; const spin = iconProps.spin, className = iconProps.className; const props = { "aria-hidden": true, focusable: false, ref, ...iconProps, className: `${className ? className + ' ' : ''}${prefixCls}-icon ${prefixCls}-icon-unlock` }; if (spin) { props.className = `${props.className} ${prefixCls}-icon-loading`; } delete props.spin; delete props.isIcon; return /*#__PURE__*/React.createElement("svg", _extends({ fill: "none", stroke: "currentColor", strokeWidth: "4", viewBox: "0 0 48 48" }, props), /*#__PURE__*/React.createElement("rect", { width: "34", height: "20", x: "7", y: "21", rx: "1" }), /*#__PURE__*/React.createElement("path", { d: "M44 15a9 9 0 1 0-18 0v6M24 35v-8" })); } const IconUnlock = /*#__PURE__*/React.forwardRef(IconUnlockComponent); IconUnlock.defaultProps = { isIcon: true }; IconUnlock.displayName = 'IconUnlock'; export default IconUnlock;