import type { SVGProps } from "react";

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

/**
 * Nicaragua — NIC icon from flag category
 *
 * @example
 * <NIC size={16} />
 * <NIC size={32} className="text-primary" />
 */
export const NIC = ({ size = 16, ...props }: NICProps) => (
  <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_2090)">
<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 0C7.24248 0 3.13173 2.76867 1.19073 6.78263H22.8092C20.8683 2.76867 16.7575 0 12 0Z" fill="#338AF3"/>
<path d="M12 24C16.7575 24 20.8683 21.2313 22.8093 17.2173H1.19073C3.13173 21.2313 7.24248 24 12 24Z" fill="#338AF3"/>
<path d="M12 8.34784C9.98298 8.34784 8.34784 9.98298 8.34784 12C8.34784 14.017 9.98298 15.6522 12 15.6522C14.017 15.6522 15.6522 14.017 15.6522 12C15.6522 9.98298 14.017 8.34784 12 8.34784ZM12 14.087C10.8474 14.087 9.91304 13.1527 9.91304 12C9.91304 10.8474 10.8474 9.91304 12 9.91304C13.1526 9.91304 14.087 10.8474 14.087 12C14.087 13.1527 13.1526 14.087 12 14.087Z" fill="#FFDA44"/>
<path d="M13.8074 12.5217L12 12L10.1926 12.5217L9.59015 13.5652H14.4098L13.8074 12.5217Z" fill="#0052B4"/>
<path d="M12 9.3913L10.7951 11.4783L12 12L13.2049 11.4783L12 9.3913Z" fill="#338AF3"/>
<path d="M10.1926 12.5217H13.8074L13.2049 11.4783H10.7951L10.1926 12.5217Z" fill="#6DA544"/>
</g>
<defs>
<clipPath id="clip0_43_2090">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
