// 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 SvgQrCode = ({
  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.33331 6.00001V1.33334H5.99998M1.33331 10V14.6667H5.99998M9.99998 1.33334H14.6666V6.00001M9.99998 14.6667H14.6666V10M12.8333 12H9.33331V8.66668M12 8.66668V10M6.66665 6.66668H3.99998V4.00001H6.66665V6.66668ZM12 6.66668H9.33331V4.00001H12V6.66668ZM6.66665 12H3.99998V9.33334H6.66665V12Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
