import React from 'react';
import '../index.css';
export default function SparkEnterInsertLine(props) {
  const { size, spin, ...restProps } = props;
  const icon = 'spark-icon spark-icon-spark-enterInsert-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-enterInsert-line',
    children: [
      React.createElement('svg', Object.assign({
        key: 'spark-enterInsert-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="M427.296 227.2a32 32 0 0 0-22.6304 9.3728l-224.048 224.048C166.8736 474.3648 160 490.9568 160 510.4c0 19.44 6.8736 36.032 20.6176 49.7792l224.048 224.048a32.0032 32.0032 0 0 0 45.2544-45.2544L253.3472 542.4H777.696c19.44 0 36.032-6.8736 49.7824-20.6208 13.744-13.744 20.6176-30.336 20.6176-49.7792v-137.6c0-17.6736-14.3264-32-32-32s-32 14.3264-32 32v137.6c0 4.2656-2.1312 6.4-6.4 6.4H253.3472l196.576-196.5728A32.0064 32.0064 0 0 0 427.2896 227.2z"></path>' },
      }))
    ],
  }))
}