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

export const IconPencilSquareSolid = 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-shein-icon customeow-shein-icon-icon-pencil-square-solid`,
    };
    return (
      <svg
        viewBox="0 0 20 20"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
        {...props}
        ref={forwardedRef}
      >
        <path
          d="M6.86307 13.1369L9.37103 13.1038L18 4.47487L15.5251 2L6.89616 10.629L6.86307 13.1369ZM15.5251 3.76777L16.2322 4.47487L15.5251 5.18206L14.8179 4.47495L15.5251 3.76777ZM13.9341 5.35883L14.6412 6.06594L8.84645 11.8607L8.12989 11.8701L8.13934 11.1536L13.9341 5.35883Z"
          fill={color}
          fillRule="evenodd"
          clipRule="evenodd"
        />
        <path
          d="M2.25 2.25H10.2544V3.5L3.5 3.5L3.5 16.25H16.25V10.25H17.5L17.5 17.5H2.25V2.25Z"
          fill={color}
        />
      </svg>
    );
  }
);

IconPencilSquareSolid.displayName = "IconPencilSquareSolid";

export default IconPencilSquareSolid;
