import type { SVGProps } from "react";

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

/**
 * Benin — BEN icon from flag category
 *
 * @example
 * <BEN size={16} />
 * <BEN size={32} className="text-primary" />
 */
export const BEN = ({ size = 16, ...props }: BENProps) => (
  <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_974)">
<path d="M7.82605 10.9565L8.86953 23.5866C9.86764 23.8557 10.9168 24 11.9999 24C18.6273 24 23.9999 18.6274 23.9999 12L7.82605 10.9565Z" fill="#D80027"/>
<path d="M7.82605 12L8.86949 0.413391C9.86764 0.144375 10.9168 0 11.9999 0C18.6273 0 23.9999 5.37262 23.9999 12H7.82605Z" fill="#FFDA44"/>
<path d="M0 12C0 17.5443 3.76036 22.2096 8.86955 23.5866V0.413391C3.76036 1.79039 0 6.45567 0 12Z" fill="#6DA544"/>
</g>
<defs>
<clipPath id="clip0_43_974">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
