// 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 SvgMapLocation = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 17 17"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M14.6668 5.99998V1.33331L10.2224 2.33331M10.2224 2.33331L5.77794 1.33331M10.2224 2.33331L10.2224 6M5.77794 1.33331L1.3335 2.35895V14.6667L5.77794 13.6666M5.77794 1.33331V13.6666M5.77794 13.6666L8.00016 14.1666M9.3335 11.0355C9.3335 13.0591 12.3335 15.1823 12.3335 15.1823C12.3335 15.1823 15.3335 13.0591 15.3335 11.0355C15.3335 9.359 13.9904 8 12.3335 8C10.6766 8 9.3335 9.359 9.3335 11.0355ZM12.1668 10.8333H12.5002V11.1667H12.1668V10.8333Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
