import { iconVariants } from "../../variants"

import type { IconProps } from "../../icon"
import { getIconAriaProps } from "../../utils"

export default function RugIcon({
  className,
  size = 24,
  color,
  ...props
}: IconProps) {
  const classNames = iconVariants({ className, color })
  const ariaProps = getIconAriaProps(props)

  return (
    <svg
      className={classNames}
      width={size}
      height={size}
      viewBox="0 0 24 24"
      fill="none"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
      {...ariaProps}
    >
      <path
        d="M12.6942 15.9883L12.6942 15.9883C12.6222 16.1081 12.5204 16.2073 12.3988 16.2761C12.2772 16.3448 12.1398 16.381 12.0001 16.381L12.6942 15.9883ZM12.6942 15.9883L14.837 12.4169M12.6942 15.9883L11.3059 15.9883M11.3059 15.9883L11.3059 15.9883L9.16304 12.4169C9.16303 12.4169 9.16302 12.4169 9.16301 12.4169C9.08739 12.291 9.04743 12.1469 9.04743 12C9.04743 11.8531 9.0874 11.709 9.16304 11.5831L11.3059 8.01172C11.3778 7.89184 11.4795 7.79264 11.6012 7.72376C11.7228 7.65488 11.8602 7.61868 12 7.61868C12.1398 7.61868 12.2772 7.65488 12.3989 7.72376C12.5205 7.79264 12.6223 7.89184 12.6942 8.01171L14.837 11.5831C14.9127 11.709 14.9526 11.8531 14.9526 12C14.9526 12.1469 14.9127 12.291 14.837 12.4169M11.3059 15.9883C11.3779 16.1081 11.4796 16.2073 11.6013 16.2761M11.3059 15.9883L11.6013 16.2761M14.837 12.4169L14.7554 12.3679M14.837 12.4169L14.8371 12.4169L14.7554 12.3679M14.7554 12.3679L12.6125 15.9393L14.7554 11.6321C14.8221 11.7432 14.8574 11.8704 14.8574 12C14.8574 12.1296 14.8221 12.2568 14.7554 12.3679ZM11.6013 16.2761C11.7229 16.3448 11.8603 16.381 12 16.381L11.6013 16.2761ZM4.99904 21.8581L5.06639 21.7908L4.99904 21.8581C5.15086 22.01 5.35676 22.0952 5.57146 22.0952C5.78616 22.0952 5.99207 22.01 6.14388 21.8581L6.07654 21.7908L6.14388 21.8581C6.2957 21.7063 6.38099 21.5004 6.38099 21.2857V19.9524H9.04765V21.2857C9.04765 21.5004 9.13294 21.7063 9.28476 21.8581C9.43657 22.01 9.64248 22.0952 9.85718 22.0952C10.0719 22.0952 10.2778 22.01 10.4296 21.8581C10.5814 21.7063 10.6667 21.5004 10.6667 21.2857V19.9524H13.3334V21.2857C13.3334 21.5004 13.4187 21.7063 13.5705 21.8581C13.7223 22.01 13.9282 22.0952 14.1429 22.0952C14.3576 22.0952 14.5635 22.01 14.7153 21.8581C14.8671 21.7063 14.9524 21.5004 14.9524 21.2857V19.9524H17.6191V21.2857C17.6191 21.5004 17.7044 21.7063 17.8562 21.8581C18.008 22.01 18.2139 22.0952 18.4286 22.0952C18.6433 22.0952 18.8492 22.01 19.001 21.8581C19.1528 21.7063 19.2381 21.5004 19.2381 21.2857V2.71429C19.2381 2.49959 19.1528 2.29368 19.001 2.14187C18.8492 1.99005 18.6433 1.90476 18.4286 1.90476C18.2139 1.90476 18.008 1.99005 17.8562 2.14187C17.7044 2.29368 17.6191 2.49959 17.6191 2.71429V4.04762H14.9524V2.71429C14.9524 2.49959 14.8671 2.29368 14.7153 2.14187C14.5635 1.99005 14.3576 1.90476 14.1429 1.90476C13.9282 1.90476 13.7223 1.99005 13.5705 2.14187C13.4187 2.29368 13.3334 2.49959 13.3334 2.71429V4.04762H10.6667V2.71429C10.6667 2.49959 10.5814 2.29368 10.4296 2.14187C10.2778 1.99005 10.0719 1.90476 9.85718 1.90476C9.64248 1.90476 9.43657 1.99005 9.28476 2.14187C9.13294 2.29368 9.04765 2.49959 9.04765 2.71429V4.04762H6.38099V2.71429C6.38099 2.49959 6.2957 2.29368 6.14388 2.14187C5.99207 1.99005 5.78616 1.90476 5.57146 1.90476C5.35676 1.90476 5.15086 1.99005 4.99904 2.14187C4.84723 2.29368 4.76194 2.49959 4.76194 2.71429V21.2857C4.76194 21.5004 4.84723 21.7063 4.99904 21.8581ZM6.38099 5.66667H17.6191V18.3333H6.38099V5.66667ZM10.8013 12L12 10.0021L13.1988 12L12 13.9979L10.8013 12Z"
        fill="#26201E"
        stroke="#26201E"
        strokeWidth="0.190476"
      />
    </svg>
  )
}
