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

export const IconInsertRowAboveOutline = 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-insert-row-above-outline`,
    };
    return (
      <svg
        viewBox="0 0 20 20"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
        {...props}
        ref={forwardedRef}
      >
        <path
          d="M4 4C4.41421 4 4.75 4.33579 4.75 4.75C4.75 5.16421 4.41421 5.5 4 5.5H3C2.86193 5.5 2.75 5.61193 2.75 5.75V10.75H17.25V5.75C17.25 5.61193 17.1381 5.5 17 5.5H16C15.5858 5.5 15.25 5.16421 15.25 4.75C15.25 4.33579 15.5858 4 16 4H17C17.9665 4 18.75 4.7835 18.75 5.75V16.75C18.75 17.7165 17.9665 18.5 17 18.5H3C2.0335 18.5 1.25 17.7165 1.25 16.75V5.75C1.25 4.7835 2.0335 4 3 4H4ZM2.75 16.75C2.75 16.8881 2.86193 17 3 17H17C17.1381 17 17.25 16.8881 17.25 16.75V12.25H2.75V16.75Z"
          fill={color}
          fillRule="evenodd"
          clipRule="evenodd"
        />
        <path
          d="M10 1.5C10.4142 1.5 10.75 1.83579 10.75 2.25V4H12.5L12.5771 4.00391C12.9551 4.04253 13.25 4.36183 13.25 4.75C13.25 5.13817 12.9551 5.45747 12.5771 5.49609L12.5 5.5H10.75V7.25L10.7461 7.32715C10.7075 7.70512 10.3882 8 10 8C9.61183 8 9.29253 7.70512 9.25391 7.32715L9.25 7.25V5.5H7.5C7.08579 5.5 6.75 5.16421 6.75 4.75C6.75 4.33579 7.08579 4 7.5 4H9.25V2.25C9.25 1.83579 9.58579 1.5 10 1.5Z"
          fill={color}
        />
      </svg>
    );
  }
);

IconInsertRowAboveOutline.displayName = "IconInsertRowAboveOutline";

export default IconInsertRowAboveOutline;
