// eslint-disable-next-line @typescript-eslint/ban-ts-comment
//@ts-nocheck
import type { VariantProps } from 'class-variance-authority'
import * as React from 'react'
import type { SVGProps } from 'react'
import { iconVariants } from '../../iconVariants'

type Color = VariantProps<typeof iconVariants>['color'] | undefined

export const SvgCursorClick = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 17 17"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M0.333496 4.58585L2.75642 5.23508M1.36255 10.4153L3.13626 8.6416M4.58594 0.333332L5.23516 2.75626M10.4155 1.36222L8.64183 3.13593M5.74821 5.74805L7.59863 14.0749L9.6803 11.9932L12.6872 15L15.0002 12.687L11.9934 9.68013L14.075 7.59847L5.74821 5.74805Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
