// 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 SvgBrowserError = ({
  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="M8.33017 14H1.6665V2H16.3332V7.33387M16.3332 4.66667H1.6665M8.52097 10.5621C9.22037 9.86273 10.0657 9.3982 10.9589 9.16847M16.0634 10.5621C15.364 9.86267 14.5187 9.39813 13.6255 9.16847M9.93504 11.9763C10.239 11.6723 10.5872 11.4393 10.9588 11.2773M14.6492 11.9763C14.3452 11.6723 13.9971 11.4393 13.6255 11.2773M12.2922 8.33333V13M12.2922 14V15.3333"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
