// 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 SvgLinkShare = ({
  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="M6.66659 9.33325L14.6666 1.33325M14.6666 1.33325H9.33325M14.6666 1.33325L14.6666 6.66659M13.3333 8.66659C13.3333 10.2579 12.7011 11.784 11.5759 12.9093C10.4507 14.0345 8.92452 14.6666 7.33325 14.6666C5.74195 14.6666 4.21583 14.0345 3.09061 12.9093C1.96539 11.784 1.33325 10.2579 1.33325 8.66659C1.33325 7.07532 1.96539 5.54917 3.09061 4.42395C4.21583 3.29873 5.74195 2.66659 7.33325 2.66659"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
