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

export const IconQuestionOutline = 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-question-outline`,
    };
    return (
      <svg
        viewBox="0 0 20 20"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
        {...props}
        ref={forwardedRef}
      >
        <path
          d="M6 8.33333V7.66582C6 5.64124 7.64125 4 9.66582 4H9.98856C12.0873 4 13.6826 5.88621 13.3344 7.95583L13.3021 8.14766C13.1311 9.16395 12.4562 10.0241 11.5097 10.4318V10.4318C10.3964 10.9115 9.67518 12.0075 9.67519 13.2198L9.67519 13.6296M9.67517 16.9904H9.68626V17H9.67517V16.9904Z"
          stroke={color}
          strokeWidth="1.5"
          strokeLinecap="round"
          strokeLinejoin="round"
        />
      </svg>
    );
  }
);

IconQuestionOutline.displayName = "IconQuestionOutline";

export default IconQuestionOutline;
