import type { SVGProps } from "react";

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

/**
 * Puerto Rico — PRI icon from flag category
 *
 * @example
 * <PRI size={16} />
 * <PRI size={32} className="text-primary" />
 */
export const PRI = ({ size = 16, ...props }: PRIProps) => (
  <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_2256)">
<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 0C8.07412 0 4.58872 1.88545 2.39948 4.8H21.6005C19.4113 1.88545 15.9259 0 12 0Z" fill="#D80027"/>
<path d="M12 24C15.9259 24 19.4113 22.1146 21.6005 19.2H2.39948C4.58872 22.1146 8.07412 24 12 24Z" fill="#D80027"/>
<path d="M0 12C0 12.8219 0.082875 13.6245 0.240328 14.4H23.7598C23.9172 13.6245 24 12.8219 24 12C24 11.178 23.9171 10.3754 23.7597 9.59998H0.240328C0.082875 10.3754 0 11.178 0 12H0Z" fill="#D80027"/>
<path d="M3.51471 3.51471C-1.17157 8.20099 -1.17157 15.799 3.51471 20.4853C5.45126 18.5488 7.31374 16.6863 12 12L3.51471 3.51471Z" fill="#0052B4"/>
<path d="M4.8567 8.86957L5.63365 11.2609H8.14831L6.11403 12.739L6.89094 15.1305L4.8567 13.6525L2.82237 15.1305L3.59947 12.739L1.56519 11.2609H4.07965L4.8567 8.86957Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_2256">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
