// 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 SvgMailSearch = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 17 17"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M8.33317 11H1.6665V1.66666H13.6665V8.33333M1.6665 3L7.6665 6.33333L13.6665 3M16.3331 16.3334L14.4302 14.4304M15.1332 12.7333C15.1332 14.0588 14.0586 15.1333 12.7332 15.1333C11.4077 15.1333 10.3332 14.0588 10.3332 12.7333C10.3332 11.4079 11.4077 10.3333 12.7332 10.3333C14.0586 10.3333 15.1332 11.4079 15.1332 12.7333Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
