// 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 SvgTextBox = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 18 18"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M3.00008 2.33341H15.0001M3.00008 15.6667H15.0001M15.6667 3.00008V15.0001M2.33341 3.00008V15.0001M5.66675 7.00008V5.00008H12.3334V7.00008M7.00008 13.0001H11.0001M9.00022 5.00008V13.0001M1.66675 1.66675H3.00008V3.00008H1.66675V1.66675ZM1.66675 15.0001H3.00008V16.3334H1.66675V15.0001ZM15.0001 1.66675H16.3334V3.00008H15.0001V1.66675ZM15.0001 15.0001H16.3334V16.3334H15.0001V15.0001Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
