import type { SVGProps } from "react";

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

/**
 * Macao SAR China — MAC icon from flag category
 *
 * @example
 * <MAC size={16} />
 * <MAC size={32} className="text-primary" />
 */
export const MAC = ({ size = 16, ...props }: MACProps) => (
  <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_1866)">
<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="#496E2D"/>
<path d="M14.087 11.4996C13.7924 11.4996 13.5128 11.5583 13.2531 11.6518C13.3953 11.3347 13.4907 10.9819 13.4907 10.6052C13.4907 9.11454 12.0001 7.99652 12.0001 7.99652C12.0001 7.99652 10.5094 9.11454 10.5094 10.6052C10.5094 10.9819 10.6048 11.3347 10.747 11.6518C10.4873 11.5584 10.2076 11.4996 9.91313 11.4996C8.42246 11.4996 7.30444 12.9903 7.30444 12.9903C7.30444 12.9903 8.42246 14.481 9.91313 14.481C10.7871 14.481 11.5325 13.9687 12.0001 13.5447C12.4677 13.9687 13.2131 14.481 14.0871 14.481C15.5777 14.481 16.6958 12.9903 16.6958 12.9903C16.6958 12.9903 15.5776 11.4996 14.087 11.4996Z" fill="#F0F0F0"/>
<path d="M12 4.69568L12.3079 5.6433H13.3044L12.4984 6.22905L12.806 7.17668L12 6.59093L11.194 7.17668L11.5017 6.22905L10.6957 5.6433H11.6921L12 4.69568Z" fill="#FFDA44"/>
<path d="M8.21098 6.35315L8.80339 6.88649L9.49371 6.48796L9.16953 7.21616L9.76189 7.7496L8.96914 7.66626L8.64495 8.39446L8.4791 7.61479L7.6864 7.53145L8.37668 7.13282L8.21098 6.35315Z" fill="#FFDA44"/>
<path d="M5.43726 9.12692L6.21697 9.29262L6.61555 8.60229L6.6989 9.395L7.47852 9.56084L6.75037 9.88508L6.83371 10.6777L6.30022 10.0855L5.57207 10.4097L5.97065 9.71928L5.43726 9.12692Z" fill="#FFDA44"/>
<path d="M15.7891 6.35315L15.1968 6.88649L14.5065 6.48796L14.8306 7.21616L14.2383 7.7496L15.031 7.66626L15.3552 8.39446L15.5211 7.61479L16.3138 7.53145L15.6235 7.13282L15.7891 6.35315Z" fill="#FFDA44"/>
<path d="M18.5629 9.12692L17.7832 9.29262L17.3846 8.60229L17.3012 9.395L16.5216 9.56084L17.2498 9.88508L17.1664 10.6777L17.6999 10.0855L18.4281 10.4097L18.0295 9.71928L18.5629 9.12692Z" fill="#FFDA44"/>
<path d="M11.9999 18.6549C13.184 18.6549 14.2755 18.2599 15.151 17.5952H8.84888C9.72441 18.2598 10.8158 18.6549 11.9999 18.6549Z" fill="#F0F0F0"/>
<path d="M7.21716 15.5245C7.38277 15.9035 7.59277 16.2585 7.83943 16.5843H16.1606C16.4072 16.2585 16.6172 15.9035 16.7829 15.5245H7.21716Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_1866">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
