// 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 SvgToast = ({
  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="M10.9998 14H14.9998V6.9766C15.7969 6.5155 16.3332 5.65371 16.3332 4.66667C16.3332 3.19391 15.1392 2 13.6665 2H6.99984M10.9998 14H2.99984V6.9766C2.20277 6.5155 1.6665 5.65371 1.6665 4.66667C1.6665 3.19391 2.86041 2 4.33317 2H9.6665C11.1392 2 12.3332 3.19391 12.3332 4.66667C12.3332 5.65371 11.7969 6.5155 10.9998 6.9766V14ZM10.9998 7H14.9998"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
