import { forwardRef } from "react";
import type { IconProps } from "@/types";

export const IconAttributeOpacity = forwardRef<SVGSVGElement, IconProps>(
  ({ color = "currentColor", ...props }, forwardedRef) => {
    const { className } = props;
    props = {
      ...props,
      width: `${props.width || props.size || 20}`,
      height: `${props.height || props.size || 20}`,
      className: `${
        className ? className + " " : ""
      }customeow-icon customeow-icon-icon-attribute-opacity`,
    };
    return (
      <svg
        viewBox="0 0 20 20"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
        {...props}
        ref={forwardedRef}
      >
        <path
          d="M3.33337 4.03337C3.33337 3.64677 3.64677 3.33337 4.03337 3.33337H6.66671V6.66671H3.33337V4.03337Z"
          fill={color}
        />
        <path opacity=".5" fill={color} d="M10 3.333H13.333V6.666H10z" />
        <path opacity=".75" fill={color} d="M6.667 6.667H10V10H6.667z" />
        <path opacity=".3" fill={color} d="M13.333 6.667H16.666V10H13.333z" />
        <path fill={color} d="M3.333 10H6.666V13.333H3.333z" />
        <path opacity=".5" fill={color} d="M10 10H13.333V13.333H10z" />
        <path opacity=".75" fill={color} d="M6.667 13.333H10V16.666H6.667z" />
        <path
          opacity=".3"
          d="M13.3334 13.3334H16.6667V15.9667C16.6667 16.3533 16.3533 16.6667 15.9667 16.6667H13.3334V13.3334Z"
          fill={color}
        />
      </svg>
    );
  }
);

IconAttributeOpacity.displayName = "IconAttributeOpacity";

export default IconAttributeOpacity;
