// 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 SvgHalfHeart = ({
  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="M12.5621 2C11.5619 2 10.6027 2.39731 9.89555 3.10452L9.00001 4M9.00001 4L8.10468 3.1046C7.39741 2.39734 6.43817 2 5.43796 2C3.35518 2 1.66675 3.68845 1.66675 5.77123C1.66675 6.7714 2.06407 7.73067 2.77131 8.43793L9.00001 14.6667M9.00001 4V14.6667M9.00001 14.6667L12.3334 11.3333M16.3333 5.77131C16.3333 4.19769 15.3695 2.84916 14.0001 2.28385M16.0001 7.32127C15.8143 7.7332 15.5544 8.11227 15.2288 8.43793L13.3334 10.3334"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
