import type { SVGProps } from "react";

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

/**
 * Tonga — TON icon from flag category
 *
 * @example
 * <TON size={16} />
 * <TON size={32} className="text-primary" />
 */
export const TON = ({ size = 16, ...props }: TONProps) => (
  <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_2647)">
<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="#F0F0F0"/>
<path d="M7.82613 6.26085V4.69565H6.26088V6.26085H4.69568V7.8261H6.26088V9.3913H7.82613V7.8261H9.39134V6.26085H7.82613Z" fill="#D80027"/>
<path d="M12 0V12C5.37262 12 2.73867 12 0 12C0 18.6274 5.37262 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37262 18.6274 0 12 0Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_2647">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
