import type { SVGProps } from "react";

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

/**
 * Cook Islands — COK icon from flag category
 *
 * @example
 * <COK size={16} />
 * <COK size={32} className="text-primary" />
 */
export const COK = ({ size = 16, ...props }: COKProps) => (
  <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_1282)">
<path d="M24 12C24 18.6274 18.6274 24 12 24C5.37262 24 0 18.6274 0 12C0 12.0029 12 0.0013125 12 0C18.6274 0 24 5.37262 24 12Z" fill="#0052B4"/>
<path d="M11.9679 12H12C12 11.9892 12 11.9787 12 11.9679C11.9893 11.9786 11.9786 11.9893 11.9679 12Z" fill="#F0F0F0"/>
<path d="M12 6.26086C12 4.14937 12 2.76586 12 0H11.998C5.37145 0.001125 0 5.37323 0 12H6.26086V8.47448L9.78638 12H11.9679C11.9786 11.9893 11.9893 11.9786 12 11.9679C12 11.1594 12 10.4381 12 9.78647L8.47444 6.26086H12Z" fill="#F0F0F0"/>
<path d="M6.071 1.56519C4.19417 2.63389 2.63384 4.19417 1.56519 6.071V12H4.69564V4.69573V4.69564H12C12 3.70831 12 2.76772 12 1.56519H6.071Z" fill="#D80027"/>
<path d="M12 10.5243L7.73649 6.26086H6.26086V6.26096L11.9999 12H12C12 12 12 10.9824 12 10.5243Z" fill="#D80027"/>
<path d="M16.1739 12L16.396 12.6832H17.1143L16.5332 13.1055L16.7552 13.7888L16.1739 13.3665L15.5927 13.7888L15.8147 13.1055L15.2335 12.6832H15.9519L16.1739 12Z" fill="#F0F0F0"/>
<path d="M13.2225 13.2225L13.8626 13.5486L14.3706 13.0406L14.2582 13.7502L14.8984 14.0764L14.1888 14.1887L14.0764 14.8984L13.7502 14.2582L13.0406 14.3706L13.5487 13.8626L13.2225 13.2225Z" fill="#F0F0F0"/>
<path d="M12 16.1739L12.6832 15.9519L12.6833 15.2336L13.1055 15.8147L13.7888 15.5926L13.3665 16.1739L13.7888 16.7552L13.1055 16.5332L12.6833 17.1143V16.396L12 16.1739Z" fill="#F0F0F0"/>
<path d="M13.2225 19.1253L13.5486 18.4852L13.0406 17.9772L13.7502 18.0896L14.0764 17.4495L14.1888 18.1591L14.8984 18.2714L14.2582 18.5976L14.3706 19.3072L13.8626 18.7991L13.2225 19.1253Z" fill="#F0F0F0"/>
<path d="M16.1739 20.3478L15.9519 19.6645H15.2335L15.8147 19.2423L15.5927 18.559L16.1739 18.9813L16.7552 18.559L16.5332 19.2423L17.1143 19.6645H16.396L16.1739 20.3478Z" fill="#F0F0F0"/>
<path d="M19.1253 19.1253L18.4852 18.7992L17.9772 19.3072L18.0896 18.5976L17.4495 18.2715L18.1591 18.1591L18.2715 17.4495L18.5976 18.0896L19.3072 17.9772L18.7991 18.4852L19.1253 19.1253Z" fill="#F0F0F0"/>
<path d="M20.3478 16.1739L19.6645 16.396V17.1143L19.2423 16.5331L18.559 16.7552L18.9813 16.1739L18.559 15.5926L19.2423 15.8147L19.6645 15.2336V15.9519L20.3478 16.1739Z" fill="#F0F0F0"/>
<path d="M19.1253 13.2226L18.7992 13.8627L19.3072 14.3706L18.5976 14.2582L18.2715 14.8984L18.1591 14.1887L17.4495 14.0764L18.0896 13.7503L17.9772 13.0407L18.4852 13.5486L19.1253 13.2226Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_1282">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
