// 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 SvgColorSwatches = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 16 16"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M5.88533 13.8856L13.4278 6.34315L9.65659 2.57192L6.66639 5.56211M3.99992 14.6666C2.52716 14.6666 1.33325 13.4727 1.33325 12V1.33331H6.66659V12C6.66659 13.4727 5.47268 14.6666 3.99992 14.6666ZM3.99992 14.6666L14.6666 14.6666V9.33331H10.3333M1.33325 4.66665H6.66659M1.33325 7.99998H6.66659"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
