import type { SVGProps } from "react";

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

/**
 * Thailand — THA icon from flag category
 *
 * @example
 * <THA size={16} />
 * <THA size={32} className="text-primary" />
 */
export const THA = ({ size = 16, ...props }: THAProps) => (
  <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_2609)">
<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="M23.2536 7.82611H0.746391C0.264 9.1261 0 10.5322 0 12C0 13.4678 0.264 14.8739 0.746391 16.1739H23.2537C23.736 14.8739 24 13.4678 24 12C24 10.5322 23.736 9.1261 23.2536 7.82611Z" fill="#0052B4"/>
<path d="M12 0C8.36291 0 5.10402 1.61831 2.90338 4.17389H21.0966C18.896 1.61831 15.6371 0 12 0Z" fill="#D80027"/>
<path d="M21.0966 19.8261H2.90338C5.10402 22.3817 8.36291 24 12 24C15.6371 24 18.896 22.3817 21.0966 19.8261Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_2609">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
