// 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 SvgSearchSquare = ({
  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="M11.6664 11.6667L9.55199 9.55232M1.33325 1.33325H14.6666V14.6666H1.33325V1.33325ZM10.3333 7.66659C10.3333 9.13932 9.13932 10.3333 7.66659 10.3333C6.19383 10.3333 4.99992 9.13932 4.99992 7.66659C4.99992 6.19383 6.19383 4.99992 7.66659 4.99992C9.13932 4.99992 10.3333 6.19383 10.3333 7.66659Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
