import React from 'react';
import '../index.css';
export default function SparkBarChartLine(props) {
  const { size, spin, ...restProps } = props;
  const icon = 'spark-icon spark-icon-spark-barChart-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-barChart-line',
    children: [
      React.createElement('svg', Object.assign({
        key: 'spark-barChart-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 742.4c-17.6736 0-32-14.3264-32-32V195.2c0-17.6736 14.3264-32 32-32s32 14.3264 32 32v515.2c0 17.6736-14.3264 32-32 32z m-246.4-32v-294.4c0-17.6736 14.3264-32 32-32s32 14.3264 32 32v294.4c0 17.6736-14.3264 32-32 32s-32-14.3264-32-32z m428.8 0v-294.4c0-17.6736 14.3264-32 32-32s32 14.3264 32 32v294.4c0 17.6736-14.3264 32-32 32s-32-14.3264-32-32zM179.2 828.8032c0-17.6736 14.3264-32 32-32h604.8c17.6736 0 32 14.3264 32 32s-14.3264 32-32 32H211.2c-17.6736 0-32-14.3264-32-32z"></path>' },
      }))
    ],
  }))
}