// 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 SvgMagnifier = ({
  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="M1.33325 12.3333L4.93325 1.33325H6.73325L7.66659 4.18511M2.64233 8.33325H4.33325M11.3333 12.6667L9.14092 5.97388M5.92851 9.33325H10.2424M10.2499 14.6666C12.6892 14.6666 14.6666 12.6892 14.6666 10.2499C14.6666 7.81065 12.6892 5.83325 10.2499 5.83325C7.81065 5.83325 5.83325 7.81065 5.83325 10.2499C5.83325 12.6892 7.81065 14.6666 10.2499 14.6666Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
