import React from 'react';
import '../index.css';
export default function SparkPlayLine(props) {
  const { size, spin, ...restProps } = props;
  const icon = 'spark-icon spark-icon-spark-play-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-play-line',
    children: [
      React.createElement('svg', Object.assign({
        key: 'spark-play-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="M325.4816 220.1184L548.48 348.672l222.8608 128.4736c26.656 15.3664 26.656 53.8304 0 69.1968L548.48 674.816l-222.9984 128.5536C298.8576 818.7168 265.6 799.4976 265.6 768.768V254.72c0-30.7328 33.2576-49.9488 59.8816-34.6016z m189.7568 397.0336l182.848-105.408-182.848-105.408L332.16 300.8v421.888l183.0784-105.536z"></path>' },
      }))
    ],
  }))
}