import type { SVGProps } from "react";

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

/**
 * Mongolia — MNG icon from flag category
 *
 * @example
 * <MNG size={16} />
 * <MNG size={32} className="text-primary" />
 */
export const MNG = ({ size = 16, ...props }: MNGProps) => (
  <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_1987)">
<path d="M12 24C13.4678 24 14.8739 23.736 16.1739 23.2536L16.6956 12L16.1739 0.746391C14.8739 0.264047 13.4678 0 12 0C10.5321 0 9.12602 0.264047 7.82609 0.746391L7.30432 12L7.82604 23.2536C9.12602 23.736 10.5321 24 12 24Z" fill="#0052B4"/>
<path d="M0 12C0 17.1596 3.2565 21.5581 7.82611 23.2536V0.746399C3.2565 2.44191 0 6.84043 0 12Z" fill="#A2001D"/>
<path d="M16.1739 0.746399V23.2537C20.7435 21.5581 24 17.1596 24 12C24 6.84043 20.7435 2.44191 16.1739 0.746399Z" fill="#A2001D"/>
<path d="M5.73914 12H6.78262V16.1739H5.73914V12Z" fill="#FFDA44"/>
<path d="M1.56519 12H2.60867V16.1739H1.56519V12Z" fill="#FFDA44"/>
<path d="M4.17386 14.6087C4.75016 14.6087 5.21734 14.1415 5.21734 13.5652C5.21734 12.9889 4.75016 12.5217 4.17386 12.5217C3.59756 12.5217 3.13037 12.9889 3.13037 13.5652C3.13037 14.1415 3.59756 14.6087 4.17386 14.6087Z" fill="#FFDA44"/>
<path d="M4.17388 10.4347C4.46202 10.4347 4.6956 10.2012 4.6956 9.91301C4.6956 9.62488 4.46202 9.3913 4.17388 9.3913C3.88574 9.3913 3.65216 9.62488 3.65216 9.91301C3.65216 10.2012 3.88574 10.4347 4.17388 10.4347Z" fill="#FFDA44"/>
<path d="M3.13043 15.1304H5.2174V16.1739H3.13043V15.1304Z" fill="#FFDA44"/>
<path d="M3.13043 10.9565H5.2174V12H3.13043V10.9565Z" fill="#FFDA44"/>
<path d="M4.17385 6.26086L4.54341 7.39805H5.7391L4.77183 8.1009L5.14111 9.23808L4.17385 8.53524L3.20663 9.23808L3.57591 8.1009L2.60864 7.39805H3.80433L4.17385 6.26086Z" fill="#FFDA44"/>
</g>
<defs>
<clipPath id="clip0_43_1987">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
