// 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 SvgSearchCategory = ({
  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="M6.66659 3.99992V1.33325H1.33325V6.66659H3.99992M6.66659 14.6666H1.33325V9.33325H3.99992M14.6666 5.99992V1.33325H9.33325V3.99992M15.3331 15.3331L12.373 12.373M13.4666 9.73325C13.4666 11.7951 11.7951 13.4666 9.73325 13.4666C7.67139 13.4666 5.99992 11.7951 5.99992 9.73325C5.99992 7.67139 7.67139 5.99992 9.73325 5.99992C11.7951 5.99992 13.4666 7.67139 13.4666 9.73325Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
