// 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 SvgShipmentReturn = ({
  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="M5.10378 8.1706H9.00294C10.057 8.1706 10.9115 9.02507 10.9115 10.0791C10.9115 11.1331 10.057 11.9876 9.00294 11.9876H5.19552M7.07361 6.18689L5.08992 8.1706L7.07361 10.1543M8.00001 1.35742V4.69075M1.33334 4.66667H14.6667M1.33334 14.6907V3.92948L3.66668 1.35742H12.3333L14.6667 3.92948V14.6907H1.33334Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
