// 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 SvgSearchBar = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 18 16"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M14.0002 11.0002L12.3087 9.30868M1.66675 2.66675H16.3334V13.3334H1.66675V2.66675ZM12.9334 7.80008C12.9334 8.97828 11.9783 9.93341 10.8001 9.93341C9.62188 9.93341 8.66675 8.97828 8.66675 7.80008C8.66675 6.62188 9.62188 5.66675 10.8001 5.66675C11.9783 5.66675 12.9334 6.62188 12.9334 7.80008Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
