// 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 SvgReceipt = ({
  color,
  className,
  ...props
}: SVGProps<SVGSVGElement> & {
  color?: Color
}) =>
  React.cloneElement(
    <svg
      width={16}
      height={16}
      viewBox="0 0 16 17"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M8 5.66666V3.99999M8 12V10.3333M9.66667 6.66666V6.33332C9.66667 5.96514 9.3682 5.66666 9 5.66666H7C6.63181 5.66666 6.33333 5.96514 6.33333 6.33332V6.95346C6.33333 7.27124 6.55764 7.54485 6.86927 7.60718L9.13073 8.05946C9.44233 8.12179 9.66667 8.39539 9.66667 8.71319V9.66666C9.66667 10.0349 9.3682 10.3333 9 10.3333H7C6.63181 10.3333 6.33333 10.0349 6.33333 9.66666V9.33332M2 1.66666V15.6667L5.33333 14L8 16L10.6667 14L14 15.6667V1.66666H2Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
