// 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 SvgTypewriter = ({
  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="M0.666748 7.99992H2.66675M13.3334 7.99992H15.3334M4.00008 4.66658V1.33325H12.0001V4.66658M4.00008 11.3333H5.33341M7.33341 11.3333H8.66675M10.6667 11.3333H12.0001M1.33341 14.6666H14.6667V11.9999L12.6667 6.66659H10.0001V7.99992H6.00008V6.66659H3.33341L1.33341 11.9999V14.6666Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
