import type { SVGProps } from "react";

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

/**
 * Niue — NIU icon from flag category
 *
 * @example
 * <NIU size={16} />
 * <NIU size={32} className="text-primary" />
 */
export const NIU = ({ size = 16, ...props }: NIUProps) => (
  <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_2110)">
<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="#FFDA44"/>
<path d="M11.9999 5.73914V9.78646L7.82605 5.73914H11.9999Z" fill="#0052B4"/>
<path d="M6.26085 12H9.78637L6.26085 7.30432L5.73914 10.9565L6.26085 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="M12 10.5243L7.73649 6.26086H6.26086V6.26096L11.9999 12H12C12 12 12 10.9824 12 10.5243Z" fill="#D80027"/>
<path d="M6.071 1.56519C5.60839 1.82862 5.16519 2.1222 4.74369 2.44269H5.23606L3.93472 3.38834L4.43169 4.9182L3.13034 3.97273L2.99187 4.07337C2.45154 4.68697 1.97248 5.35578 1.56519 6.071V12H4.69564V4.69573V4.69564H12C12 3.70831 12 2.76772 12 1.56519H6.071Z" fill="#D80027"/>
<path d="M5.12625 2.16339C4.99683 2.254 4.86924 2.34714 4.74356 2.44272L3.93474 3.38838L3.13036 3.97272L2.99072 4.07416C2.69606 4.40884 2.41974 4.76003 2.16333 5.12627C2.4556 5.26811 2.78367 5.34784 3.13036 5.34784C4.35502 5.34784 5.34774 4.35513 5.34774 3.13047C5.34783 2.78369 5.26814 2.4557 5.12625 2.16339Z" fill="#0052B4"/>
<path d="M2.99072 4.07413L3.13036 3.97269L4.43171 4.9182L3.93469 3.38834L5.23594 2.44269H4.74347C4.10625 2.92733 3.51905 3.47408 2.99072 4.07413Z" fill="#FFDA44"/>
<path d="M8.29415 2.08698L8.55318 2.88408H9.39131L8.71326 3.37679L8.97215 4.1739L8.29415 3.68124L7.6161 4.1739L7.87495 3.37679L7.1969 2.88408H8.03507L8.29415 2.08698Z" fill="#FFDA44"/>
<path d="M3.13041 7.30432L3.38944 8.10143H4.22756L3.54956 8.59418L3.80845 9.39129L3.13041 8.89859L2.45231 9.39129L2.7112 8.59418L2.0332 8.10143H2.87133L3.13041 7.30432Z" fill="#FFDA44"/>
</g>
<defs>
<clipPath id="clip0_43_2110">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
