// 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 SvgSearchVisual = ({
  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.6669 11.6666L9.34105 9.34072M1.33325 5.33325V1.33325H5.33325M10.6666 1.33325H14.6666V5.33325M14.6666 10.6666V14.6666H10.6666M5.33325 14.6666H1.33325V10.6666M10.1999 7.26659C10.1999 8.88659 8.88665 10.1999 7.26659 10.1999C5.64655 10.1999 4.33325 8.88659 4.33325 7.26659C4.33325 5.64655 5.64655 4.33325 7.26659 4.33325C8.88665 4.33325 10.1999 5.64655 10.1999 7.26659Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
