import type { SVGProps } from "react";

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

/**
 * Guinea-Bissau — GNB icon from flag category
 *
 * @example
 * <GNB size={16} />
 * <GNB size={32} className="text-primary" />
 */
export const GNB = ({ size = 16, ...props }: GNBProps) => (
  <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_1626)">
<path d="M12 0C10.9169 0 9.86766 0.144375 8.86955 0.413391L7.82611 12L8.8696 23.5866C9.86766 23.8556 10.9169 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37262 18.6274 0 12 0Z" fill="#FFDA44"/>
<path d="M7.82611 12L8.8696 23.5866C9.86766 23.8556 10.9169 24 12 24C18.6274 24 24 18.6274 24 12H7.82611Z" fill="#6DA544"/>
<path d="M0 12C0 16.5485 2.53078 20.5057 6.26086 22.5409V1.45908C2.53078 3.49429 0 7.45148 0 12Z" fill="#D80027"/>
<path d="M0 12C0 17.5443 3.76036 22.2096 8.86955 23.5866V0.413391C3.76036 1.79039 0 6.45567 0 12Z" fill="#D80027"/>
<path d="M4.5345 8.86954L5.31145 11.2609H7.82611L5.79182 12.739L6.56873 15.1304L4.5345 13.6524L2.50017 15.1304L3.27726 12.739L1.24298 11.2609H3.7575L4.5345 8.86954Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_43_1626">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
