import React from 'react';
import '../index.css';
export default function SparkMenuLine(props) {
  const { size, spin, ...restProps } = props;
  const icon = 'spark-icon spark-icon-spark-menu-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-menu-line',
    children: [
      React.createElement('svg', Object.assign({
        key: 'spark-menu-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="M153.6 256c0-17.6736 14.3264-32 32-32h652.8c17.6736 0 32 14.3264 32 32s-14.3264 32-32 32H185.6c-17.6736 0-32-14.3264-32-32zM153.6 512c0-17.6736 14.3264-32 32-32h652.8c17.6736 0 32 14.3264 32 32s-14.3264 32-32 32H185.6c-17.6736 0-32-14.3264-32-32zM153.6 768c0-17.6736 14.3264-32 32-32h652.8c17.6736 0 32 14.3264 32 32s-14.3264 32-32 32H185.6c-17.6736 0-32-14.3264-32-32z"></path>' },
      }))
    ],
  }))
}