import _extends from "@babel/runtime/helpers/esm/extends";
// **********************************
// Auto-generated file, do NOT modify
// **********************************
import React, { forwardRef, memo, useId } from 'react';
import { createStyledFlagIcon } from '../base';
const FlagIcon = _ref => {
  let {
    svgRef,
    title = 'SR flag',
    theme,
    ...props
  } = _ref;
  const uniqueTitleId = useId();
  const titleId = title ? props.titleId || uniqueTitleId : undefined;
  const ariaHidden = titleId ? undefined : true;
  return /*#__PURE__*/React.createElement("svg", _extends({
    "aria-hidden": ariaHidden,
    "aria-labelledby": titleId,
    ref: svgRef,
    viewBox: "0 0 640 480"
  }, props), title ? /*#__PURE__*/React.createElement("title", {
    id: titleId
  }, title) : null, /*#__PURE__*/React.createElement("path", {
    d: "M.1 0h640v480H.1z",
    fill: "#377e3f"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M.1 96h640v288H.1z",
    fill: "#fff"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M.1 144h640v192H.1z",
    fill: "#b40a2d"
  }), /*#__PURE__*/React.createElement("path", {
    d: "M320 153.2l56.4 173.6-147.7-107.3h182.6L263.6 326.8z",
    fill: "#ecc81d"
  }));
};
const FlagIconWithForwardedRef = /*#__PURE__*/forwardRef((iconProps, ref) => /*#__PURE__*/React.createElement(FlagIcon, _extends({}, iconProps, {
  svgRef: ref
})));
export const SRFlagIcon = /*#__PURE__*/memo(createStyledFlagIcon(FlagIconWithForwardedRef));
SRFlagIcon.displayName = 'SRFlagIcon';