import type { SVGProps } from "react";

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

/**
 * Madagascar — MDG icon from flag category
 *
 * @example
 * <MDG size={16} />
 * <MDG size={32} className="text-primary" />
 */
export const MDG = ({ size = 16, ...props }: MDGProps) => (
  <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_1878)">
<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="M7.82611 12V23.2536C9.12605 23.736 10.5322 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37263 7.82611 12 7.82611 12Z" fill="#6DA544"/>
<path d="M12 0C10.5322 0 9.12605 0.264047 7.82611 0.746391V12H24C24 5.37262 18.6274 0 12 0Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_1878">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
