import React from 'react';
import '../index.css';
export default function SparkEditLine(props) {
  const { size, spin, ...restProps } = props;
  const icon = 'spark-icon spark-icon-spark-edit-line';
  const className = [
    icon,
    spin ? 'spark-icon-spin' : '',
    props.className || ''
  ].filter(Boolean).join(' ');
  
  return React.createElement('span', Object.assign({}, restProps, {
    className: className,
    style: {
      ...props.style,
      fontSize: size || props.style?.fontSize || undefined,
      cursor: props.onClick ? 'pointer' : props.style?.cursor
    },
    role: 'img',
    'aria-label': 'spark-edit-line',
    children: [
      React.createElement('svg', Object.assign({
        key: 'spark-edit-line',
        'data-spark-icon': true, // 标识为 spark-icon 组件
        width: '1em',
        height: '1em',
        viewBox: '0 0 1024 1024',
        overflow: 'hidden',
        fill: 'currentColor',
        'aria-hidden': 'true',
        dangerouslySetInnerHTML: { __html: '<path d="M185.6 806.4h652.8c17.6736 0 32 14.3264 32 32s-14.3264 32-32 32H185.6c-17.6736 0-32-14.3264-32-32s14.3264-32 32-32zM281.488 515.312L626.7456 170.0544c24.992-24.992 65.5168-24.992 90.5088 0L853.024 305.824c24.992 24.992 24.992 65.5136 0 90.5088L507.76 741.5872a64 64 0 0 1-54.384 18.0896l-118.6592-17.1072a64 64 0 0 1-54.2144-54.2112l-17.104-118.6592a64 64 0 0 1 18.0896-54.3872z m62.3616 163.9136l118.656 17.1072L807.7632 351.072 672 215.3088 326.7424 560.5664l17.1072 118.6592z"></path>' },
      }))
    ],
  }))
}