import type { SVGProps } from "react";

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

/**
 * French Polynesia — PYF icon from flag category
 *
 * @example
 * <PYF size={16} />
 * <PYF size={32} className="text-primary" />
 */
export const PYF = ({ size = 16, ...props }: PYFProps) => (
  <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_1521)">
<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="M1.45911 6.26086H22.5409C20.5057 2.53073 16.5485 0 12 0C7.45151 0 3.49437 2.53073 1.45911 6.26086Z" fill="#D80027"/>
<path d="M12 24C16.5485 24 20.5057 21.4693 22.5409 17.7391H1.45911C3.49437 21.4693 7.45151 24 12 24Z" fill="#D80027"/>
<path d="M16.1739 12C16.1739 14.3052 14.3052 15.6522 12 15.6522C9.69483 15.6522 7.82611 14.3052 7.82611 12C7.82611 9.69478 9.69483 7.82611 12 7.82611C14.3052 7.82611 16.1739 9.69478 16.1739 12Z" fill="#FFDA44"/>
<path d="M16.1739 12C16.1739 14.3052 14.3052 16.1739 12 16.1739C9.69483 16.1739 7.82611 14.3052 7.82611 12" fill="#0052B4"/>
<path d="M9.3913 10.9565H10.4348V13.0435H9.3913V10.9565Z" fill="#D80027"/>
<path d="M13.5652 10.9565H14.6087V13.0435H13.5652V10.9565Z" fill="#D80027"/>
<path d="M11.4783 9.39133H12.5218V13.0435H11.4783V9.39133Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_1521">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
