import React from 'react';
import '../index.css';
export default function SparkEditFill(props) {
  const { size, spin, ...restProps } = props;
  const icon = 'spark-icon spark-icon-spark-edit-fill';
  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-fill',
    children: [
      React.createElement('svg', Object.assign({
        key: 'spark-edit-fill',
        '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-32zM626.7456 170.0544L281.488 515.312a64 64 0 0 0-18.0896 54.3872l17.104 118.656a64 64 0 0 0 54.2144 54.2144l118.656 17.1072a64 64 0 0 0 54.3872-18.0896L853.024 396.3296c24.992-24.992 24.992-65.5168 0-90.5088l-135.7664-135.7664c-24.992-24.992-65.5168-24.992-90.5088 0z"></path>' },
      }))
    ],
  }))
}