import type { SVGProps } from "react";

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

/**
 * Rwanda — RWA icon from flag category
 *
 * @example
 * <RWA size={16} />
 * <RWA size={32} className="text-primary" />
 */
export const RWA = ({ size = 16, ...props }: RWAProps) => (
  <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_2295)">
<path d="M0 12C0 14.0789 0.528891 16.0343 1.45908 17.7392L12 18.7827L22.5409 17.7392C23.4711 16.0343 24 14.0789 24 12L12 10.9565L0 12Z" fill="#FFDA44"/>
<path d="M22.5409 6.26086C20.5057 2.53073 16.5485 0 12 0C7.45148 0 3.49434 2.53073 1.45908 6.26086C0.528891 7.96575 0 9.92109 0 12H24C24 9.92109 23.4711 7.96575 22.5409 6.26086Z" fill="#338AF3"/>
<path d="M12 24C16.5485 24 20.5057 21.4693 22.5409 17.7391H1.45911C3.49437 21.4693 7.45151 24 12 24Z" fill="#496E2D"/>
<path d="M13.5652 7.02287L15.0308 7.71226L14.2504 9.13163L15.8418 8.82723L16.0434 10.4348L17.1518 9.25243L18.2603 10.4348L18.4619 8.82723L20.0533 9.13154L19.273 7.71221L20.7385 7.02287L19.2729 6.33357L20.0533 4.91419L18.462 5.2186L18.2603 3.61102L17.1518 4.7934L16.0434 3.61102L15.8418 5.2186L14.2503 4.91419L15.0307 6.33362L13.5652 7.02287Z" fill="#FFDA44"/>
</g>
<defs>
<clipPath id="clip0_43_2295">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
