import React from 'react';
import '../index.css';
export default function SparkIncompleteLine(props) {
  const { size, spin, ...restProps } = props;
  const icon = 'spark-icon spark-icon-spark-incomplete-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-incomplete-line',
    children: [
      React.createElement('svg', Object.assign({
        key: 'spark-incomplete-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="M512 896c212.0768 0 384-171.9232 384-384S724.0768 128 512 128 128 299.9232 128 512s171.9232 384 384 384z m0-704c176.7296 0 320 143.2704 320 320s-143.2704 320-320 320S192 688.7296 192 512 335.2704 192 512 192z"></path>' },
      }))
    ],
  }))
}