import type { SVGProps } from "react";

export interface IRQProps extends SVGProps<SVGSVGElement> {
  /**
   * Icon size (width and height)
   * @default 16
   */
  size?: number | string;
}

/**
 * Iraq — IRQ icon from flag category
 *
 * @example
 * <IRQ size={16} />
 * <IRQ size={32} className="text-primary" />
 */
export const IRQ = ({ size = 16, ...props }: IRQProps) => (
  <svg
    fill="none"
    height={size}
    viewBox="0 0 24 24"
    width={size}
    xmlns="http://www.w3.org/2000/svg"
    {...props}
  >
    <g clipPath="url(#clip0_43_1706)">
<path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="#F0F0F0"/>
<path d="M12 0C6.84043 0 2.44191 3.2565 0.746399 7.82611H23.2537C21.5581 3.2565 17.1596 0 12 0Z" fill="#A2001D"/>
<path d="M12 24C17.1596 24 21.5581 20.7435 23.2536 16.1739H0.746399C2.44191 20.7435 6.84043 24 12 24Z" fill="black"/>
<path d="M9.13045 11.2174C9.12389 11.2174 9.11747 11.2178 9.1109 11.2179V11.2174H6.81698C6.93328 10.768 7.341 10.4347 7.82611 10.4347V8.86954C6.38765 8.86954 5.21742 10.0398 5.21742 11.4782V12.7565V12.7826H9.1109H9.13045C9.27431 12.7826 9.39131 12.8997 9.39131 13.0435V13.5652H4.17389V15.1304H10.9565V13.0434C10.9565 12.0366 10.1373 11.2174 9.13045 11.2174Z" fill="#496E2D"/>
<path d="M13.0435 13.5652V8.86954H11.4783V15.1304H14.087V13.5652H13.0435Z" fill="#496E2D"/>
<path d="M18.2609 13.5652V8.86954H16.6957V13.5652H16.1739V12H14.6087V15.1305H19.3044V13.5652H18.2609Z" fill="#496E2D"/>
</g>
<defs>
<clipPath id="clip0_43_1706">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
