import type { SVGProps } from "react";

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

/**
 * Namibia — NAM icon from flag category
 *
 * @example
 * <NAM size={16} />
 * <NAM size={32} className="text-primary" />
 */
export const NAM = ({ size = 16, ...props }: NAMProps) => (
  <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_2037)">
<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="M3.51475 20.4853C4.01814 20.9887 4.55524 21.4376 5.11863 21.8328L21.8328 5.11863C21.4376 4.55524 20.9887 4.01814 20.4852 3.51475C19.9818 3.01136 19.4448 2.56249 18.8814 2.16724L2.16724 18.8815C2.56244 19.4448 3.01136 19.9819 3.51475 20.4853Z" fill="#A2001D"/>
<path d="M3.51471 3.51472C-0.271105 7.30053 -0.997855 12.9861 1.33291 17.5021L17.5021 1.33301C12.986 -0.997753 7.30043 -0.270909 3.51471 3.51472Z" fill="#0052B4"/>
<path d="M20.4853 20.4853C24.271 16.6996 24.9978 11.014 22.6671 6.49792L6.49792 22.6671C11.0139 24.9978 16.6995 24.2711 20.4853 20.4853Z" fill="#496E2D"/>
<path d="M9.91301 6.78261L8.56836 7.4151L9.28442 8.71738L7.82431 8.4381L7.63925 9.91302L6.62225 8.82819L5.6052 9.91302L5.42023 8.4381L3.96008 8.71733L4.67609 7.41505L3.33148 6.78261L4.67614 6.15008L3.96008 4.84789L5.42019 5.12718L5.60525 3.65216L6.62225 4.73704L7.63929 3.65216L7.82431 5.12718L9.28442 4.84789L8.56845 6.15013L9.91301 6.78261Z" fill="#FFDA44"/>
</g>
<defs>
<clipPath id="clip0_43_2037">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
