// 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 SvgSquareCap = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 17 16"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M17.0001 14H1.66675V2H17.0001M9.66675 8C9.66675 8.53043 9.45603 9.03914 9.08096 9.41421C8.70589 9.78929 8.19718 10 7.66675 10C7.13632 10 6.62761 9.78929 6.25253 9.41421C5.87746 9.03914 5.66675 8.53043 5.66675 8C5.66675 7.46957 5.87746 6.96086 6.25253 6.58579C6.62761 6.21071 7.13632 6 7.66675 6C8.19718 6 8.70589 6.21071 9.08096 6.58579C9.45603 6.96086 9.66675 7.46957 9.66675 8ZM9.66675 8H17.0001"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
