// 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 SvgColorPicker = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 18 18"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M6.33341 3.00002L15.0001 11.6667M12.7977 1.66669C14.7503 1.66669 16.3332 3.2496 16.3332 5.20222C16.3332 6.1399 15.9607 7.03918 15.2977 7.70222L8.66648 14.3334H5.33317L3.61076 16.0554L1.94409 14.3887L3.66651 12.6667V9.33335L10.2977 2.70222C10.9607 2.03918 11.8599 1.66669 12.7977 1.66669Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
