import type { SVGProps } from "react";

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

/**
 * Moldova — MDA icon from flag category
 *
 * @example
 * <MDA size={16} />
 * <MDA size={32} className="text-primary" />
 */
export const MDA = ({ size = 16, ...props }: MDAProps) => (
  <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_1977)">
<path d="M17.2174 1.19072C15.6397 0.427875 13.8698 0 12 0C10.1302 0 8.36025 0.427875 6.78262 1.19072L5.73914 12L6.78262 22.8093C8.36025 23.5721 10.1302 24 12 24C13.8698 24 15.6397 23.5721 17.2174 22.8093L18.2609 12L17.2174 1.19072Z" fill="#FFDA44"/>
<path d="M6.78263 1.19116C2.76872 3.13212 0 7.24254 0 12C0 16.7575 2.76872 20.8679 6.78263 22.8089V1.19116Z" fill="#0052B4"/>
<path d="M17.2173 1.19116V22.8089C21.2313 20.8679 24 16.7575 24 12C24 7.24254 21.2313 3.13212 17.2173 1.19116Z" fill="#D80027"/>
<path d="M16.1739 9.44149H13.3043C13.3043 8.72111 12.7204 8.13715 12 8.13715C11.2796 8.13715 10.6957 8.72111 10.6957 9.44149H7.82611C7.82611 10.1508 8.44397 10.7257 9.15314 10.7257H9.11039C9.11039 11.435 9.68536 12.01 10.3947 12.01C10.3947 12.638 10.8457 13.1598 11.4414 13.2714L10.4294 15.5561C10.9143 15.7533 11.4443 15.8628 12 15.8628C12.5557 15.8628 13.0857 15.7533 13.5706 15.5561L12.5586 13.2714C13.1543 13.1598 13.6053 12.638 13.6053 12.01C14.3146 12.01 14.8896 11.435 14.8896 10.7257H14.8468C15.5561 10.7257 16.1739 10.1507 16.1739 9.44149Z" fill="#FF9811"/>
<path d="M12 11.2173L10.3043 12V13.5652L12 14.6087L13.6956 13.5652V12L12 11.2173Z" fill="#0052B4"/>
<path d="M10.3043 10.4348H13.6956V12H10.3043V10.4348Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_1977">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
