import type { SVGProps } from "react";

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

/**
 * Romania — ROU icon from flag category
 *
 * @example
 * <ROU size={16} />
 * <ROU size={32} className="text-primary" />
 */
export const ROU = ({ size = 16, ...props }: ROUProps) => (
  <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_2287)">
<path d="M16.1739 0.746344C14.8739 0.264047 13.4679 6.23894e-09 12 6.23894e-09C10.5322 -4.68688e-05 9.12612 0.264047 7.82614 0.746344L6.78265 12L7.82614 23.2536C9.12608 23.736 10.5321 24 12 24C13.4678 24 14.8739 23.736 16.1739 23.2536L17.2174 12L16.1739 0.746344Z" fill="#FFDA44"/>
<path d="M24 12C24 6.84048 20.7435 2.44187 16.1739 0.746399V23.2537C20.7435 21.5581 24 17.1596 24 12Z" fill="#D80027"/>
<path d="M0 12C0 17.1596 3.2565 21.5581 7.82602 23.2537L7.82606 0.74646C3.2565 2.44193 0 6.8404 0 12H0Z" fill="#0052B4"/>
</g>
<defs>
<clipPath id="clip0_43_2287">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
