// 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 SvgCapSide = ({
  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="M9.92227 9.51993C10.5874 7.03773 11.5397 4.72174 12.9472 4.43373M4.96098 8.18887L1.98438 10.1733C4.17898 12.9949 7.55306 11.6883 10.1653 9.5816M12.0392 4.10068C8.9546 3.27418 5.78409 5.10469 4.95759 8.18927L16.1277 11.1823C16.9542 8.09773 15.1237 4.92718 12.0392 4.10068Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
