// 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 SvgPattern = ({
  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="M4.66658 5.99992V8.66659M3.33325 7.33325H5.99992M8.66659 5.99992V8.66659M7.33325 7.33325H9.99992M4.66658 9.99992V12.6666M3.33325 11.3333H5.99992M8.66659 9.99992V12.6666M7.33325 11.3333H9.99992M3.33325 1.33325H14.6666V12.6666M1.33325 3.99992H11.9999V14.6666H1.33325V3.99992Z"
        stroke="currentColor"
        vectorEffect="non-scaling-stroke"
      />
    </svg>,
    {
      className: iconVariants({
        color,
        className,
      }),
      ...props,
    },
  )
