import type { SVGProps } from "react";

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

/**
 * Togo — TGO icon from flag category
 *
 * @example
 * <TGO size={16} />
 * <TGO size={32} className="text-primary" />
 */
export const TGO = ({ size = 16, ...props }: TGOProps) => (
  <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_2631)">
<path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="#FFDA44"/>
<path d="M12 0C11.9913 9.375e-05 11.4783 4.8 11.4783 4.8H21.6006C19.4113 1.88545 15.9259 0 12 0Z" fill="#496E2D"/>
<path d="M12 24C15.9259 24 19.4113 22.1146 21.6005 19.2H2.39948C4.58872 22.1146 8.07412 24 12 24Z" fill="#496E2D"/>
<path d="M23.7597 9.60001H11.4783L12 14.4H23.7597C23.9172 13.6246 24 12.822 24 12C24 11.1781 23.9171 10.3755 23.7597 9.60001Z" fill="#496E2D"/>
<path d="M12 14.4C12 11.8957 12 2.81737 12 0C5.37262 0 0 5.37262 0 12C0 12.822 0.082875 13.6245 0.240281 14.4H12Z" fill="#D80027"/>
<path d="M6.62142 5.73914L7.39842 8.13046H9.91303L7.8788 9.60857L8.65571 12L6.62142 10.522L4.58714 12L5.36419 9.60857L3.32996 8.13046H5.84447L6.62142 5.73914Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_2631">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
