// 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 SvgTextBar = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 16 18"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M2.66675 1.66675H5.33341C6.80615 1.66675 8.00008 2.86065 8.00008 4.33341M8.00008 4.33341V13.6667M8.00008 4.33341C8.00008 2.86065 9.19401 1.66675 10.6667 1.66675H13.3334M8.00008 13.6667C8.00008 15.1395 6.80615 16.3334 5.33341 16.3334H2.66675M8.00008 13.6667C8.00008 15.1395 9.19401 16.3334 10.6667 16.3334H13.3334M4.00008 9.00008H12.0001"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
