// 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 SvgAnchor = ({
  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="M4.66667 10.3333H2V13C2 13 4 16.3333 8 16.3333M8 16.3333C12 16.3333 14 13 14 13V10.3333H11.3333M8 16.3333V4.33341M8 4.33341C8.7364 4.33341 9.33333 3.73638 9.33333 3C9.33333 2.26362 8.7364 1.66666 8 1.66666C7.2636 1.66666 6.66667 2.26362 6.66667 3C6.66667 3.73638 7.2636 4.33341 8 4.33341ZM5.33325 7H10.6666"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
