import type { SVGProps } from "react";

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

/**
 * Mali — MLI icon from flag category
 *
 * @example
 * <MLI size={16} />
 * <MLI size={32} className="text-primary" />
 */
export const MLI = ({ size = 16, ...props }: MLIProps) => (
  <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_1909)">
<path d="M16.1739 0.746391C14.8739 0.264047 13.4678 0 12 0C10.5321 0 9.12606 0.264047 7.82608 0.746391L6.78259 12L7.82608 23.2536C9.12606 23.736 10.5321 24 12 24C13.4678 24 14.8739 23.736 16.1739 23.2536L17.2173 12L16.1739 0.746391Z" fill="#FFDA44"/>
<path d="M24.0001 12C24.0001 6.84049 20.7436 2.44193 16.174 0.74646V23.2537C20.7436 21.5581 24.0001 17.1596 24.0001 12Z" fill="#D80027"/>
<path d="M0 12C0 17.1596 3.2565 21.5581 7.82611 23.2537V0.74646C3.2565 2.44193 0 6.84049 0 12Z" fill="#6DA544"/>
</g>
<defs>
<clipPath id="clip0_43_1909">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
