import React from 'react';
import '../index.css';
export default function SparkTrueLine(props) {
  const { size, spin, ...restProps } = props;
  const icon = 'spark-icon spark-icon-spark-true-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-true-line',
    children: [
      React.createElement('svg', Object.assign({
        key: 'spark-true-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="M233.8912 508.3456l0.0128 0.0128 165.296 166.256L790.0928 281.4528l0.016-0.016A31.9904 31.9904 0 0 1 812.7072 272H812.8a32.0064 32.0064 0 0 1 32 31.9072V304a32 32 0 0 1-9.3088 22.56l-0.0128 0.016-413.584 415.9872-0.1312 0.128c-12.5344 12.4608-32.7968 12.4032-45.2544-0.128l-187.9904-189.0816-0.0096-0.0096A32 32 0 0 1 179.2 530.9088V530.816a32 32 0 0 1 54.6912-22.4704z"></path>' },
      }))
    ],
  }))
}