import type { SVGProps } from "react";

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

/**
 * Haiti — HTI icon from flag category
 *
 * @example
 * <HTI size={16} />
 * <HTI size={32} className="text-primary" />
 */
export const HTI = ({ size = 16, ...props }: HTIProps) => (
  <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_1644)">
<path d="M24 12C24 18.6274 18.6274 24 12 24C5.37262 24 0 18.6274 0 12C0 5.37262 12 0 12 0C12 0 24 5.37262 24 12Z" fill="#A2001D"/>
<path d="M0 12C0 5.37262 5.37262 0 12 0C18.6274 0 24 5.37262 24 12" fill="#0052B4"/>
<path d="M16.1739 15.1304L12 14.6087L7.82611 15.1304V8.86954H16.1739V15.1304Z" fill="#F0F0F0"/>
<path d="M12 14.6087C13.1526 14.6087 14.087 13.6743 14.087 12.5217C14.087 11.3691 13.1526 10.4348 12 10.4348C10.8474 10.4348 9.91302 11.3691 9.91302 12.5217C9.91302 13.6743 10.8474 14.6087 12 14.6087Z" fill="#0052B4"/>
<path d="M12 13.5652C12.5763 13.5652 13.0435 13.098 13.0435 12.5217C13.0435 11.9454 12.5763 11.4782 12 11.4782C11.4237 11.4782 10.9565 11.9454 10.9565 12.5217C10.9565 13.098 11.4237 13.5652 12 13.5652Z" fill="#A2001D"/>
<path d="M10.4348 9.91302H13.5652L12 11.4783L10.4348 9.91302Z" fill="#6DA544"/>
<path d="M11.4783 10.9565H12.5218V14.087H11.4783V10.9565Z" fill="#FFDA44"/>
<path d="M13.6695 13.7739H10.3304L7.82611 15.1305H16.1739L13.6695 13.7739Z" fill="#6DA544"/>
</g>
<defs>
<clipPath id="clip0_43_1644">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
