import type { SVGProps } from "react";

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

/**
 * Guinea — GIN icon from flag category
 *
 * @example
 * <GIN size={16} />
 * <GIN size={32} className="text-primary" />
 */
export const GIN = ({ size = 16, ...props }: GINProps) => (
  <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_1633)">
<path d="M16.174 0.746437C14.874 0.264047 13.4679 0 12 0C10.5322 0 9.12615 0.264047 7.82621 0.746344L7.30444 12L7.82616 23.2537C9.12615 23.736 10.5322 24 12 24C13.4679 24 14.874 23.736 16.174 23.2536L16.6958 12L16.174 0.746437Z" fill="#FFDA44"/>
<path d="M0 12C0 17.1595 3.2565 21.5581 7.82611 23.2536V0.746338C3.2565 2.4419 0 6.84037 0 12Z" fill="#D80027"/>
<path d="M24.0001 12C24.0001 6.84037 20.7436 2.4419 16.174 0.746338V23.2536C20.7436 21.5581 24.0001 17.1595 24.0001 12Z" fill="#6DA544"/>
</g>
<defs>
<clipPath id="clip0_43_1633">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
