import type { SVGProps } from "react";

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

/**
 * Malaysia — MYS icon from flag category
 *
 * @example
 * <MYS size={16} />
 * <MYS size={32} className="text-primary" />
 */
export const MYS = ({ size = 16, ...props }: MYSProps) => (
  <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_1894)">
<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="M11.4783 12H24C24 10.9169 23.8556 9.86772 23.5866 8.86957H11.4783V12Z" fill="#D80027"/>
<path d="M11.4783 5.73916H22.2387C21.5041 4.54047 20.565 3.48095 19.4698 2.6087H11.4783V5.73916Z" fill="#D80027"/>
<path d="M12 24C14.8242 24 17.42 23.0239 19.4699 21.3914H4.53015C6.58004 23.0239 9.17584 24 12 24Z" fill="#D80027"/>
<path d="M1.76128 18.2609H22.2387C22.8285 17.2986 23.2858 16.2467 23.5866 15.1304H0.413391C0.714188 16.2467 1.17155 17.2986 1.76128 18.2609Z" fill="#D80027"/>
<path d="M12 12C12 5.37262 12 4.59131 12 0C5.37262 0 0 5.37262 0 12H12Z" fill="#0052B4"/>
<path d="M7.9797 10.2717C6.34086 10.2717 5.01233 8.94314 5.01233 7.30435C5.01233 5.66555 6.34091 4.33697 7.9797 4.33697C8.49069 4.33697 8.97148 4.46621 9.39125 4.69364C8.73275 4.04972 7.83219 3.65222 6.83839 3.65222C4.82141 3.65222 3.18622 5.28736 3.18622 7.30439C3.18622 9.32142 4.82141 10.9566 6.83839 10.9566C7.83219 10.9566 8.73275 10.5591 9.39125 9.91514C8.97148 10.1425 8.49073 10.2717 7.9797 10.2717Z" fill="#FFDA44"/>
<path d="M8.81592 5.21741L9.34275 6.31906L10.5325 6.04419L9.9997 7.14289L10.9565 7.90166L9.76523 8.1702L9.76856 9.39135L8.81592 8.62738L7.86323 9.39135L7.86651 8.1702L6.67523 7.90166L7.63204 7.14289L7.09922 6.04419L8.28904 6.31906L8.81592 5.21741Z" fill="#FFDA44"/>
</g>
<defs>
<clipPath id="clip0_43_1894">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
