import type { SVGProps } from "react";

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

/**
 * Hungary — HUN icon from flag category
 *
 * @example
 * <HUN size={16} />
 * <HUN size={32} className="text-primary" />
 */
export const HUN = ({ size = 16, ...props }: HUNProps) => (
  <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_1679)">
<path d="M0.746391 7.82611C0.264047 9.12614 0 10.5322 0 12C0 13.4678 0.264047 14.874 0.746391 16.1739L12 17.2174L23.2536 16.1739C23.736 14.874 24 13.4678 24 12C24 10.5322 23.736 9.12614 23.2536 7.82611L12 6.78262L0.746391 7.82611Z" fill="#F0F0F0"/>
<path d="M12 0C6.84049 0 2.44193 3.2565 0.74646 7.82611H23.2537C21.5581 3.2565 17.1596 0 12 0Z" fill="#D80027"/>
<path d="M12 24C17.1596 24 21.5581 20.7435 23.2537 16.1739H0.74646C2.44193 20.7435 6.84049 24 12 24Z" fill="#6DA544"/>
</g>
<defs>
<clipPath id="clip0_43_1679">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
