import type { SVGProps } from "react";

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

/**
 * Andorra — AND icon from flag category
 *
 * @example
 * <AND size={16} />
 * <AND size={32} className="text-primary" />
 */
export const AND = ({ size = 16, ...props }: ANDProps) => (
  <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_811)">
<path d="M6.78262 22.8093C8.36025 23.5721 10.1301 24 12 24C13.8699 24 15.6397 23.5721 17.2174 22.8093L18.2609 12L17.2174 1.19072C15.6397 0.427875 13.8699 0 12 0C10.1301 0 8.36025 0.427875 6.78262 1.19072L5.73914 12L6.78262 22.8093Z" fill="#FFDA44"/>
<path d="M17.2173 22.8089C21.2313 20.868 24 16.7575 24 12C24 7.24254 21.2313 3.13207 17.2173 1.19116V22.8089Z" fill="#D80027"/>
<path d="M6.78263 22.8089V1.19116C2.76867 3.13207 0 7.24249 0 12C0 16.7576 2.76867 20.868 6.78263 22.8089Z" fill="#0052B4"/>
<path d="M12 16.1739C12 14.259 12 12 12 12H15.1305V13.5652C15.1305 13.8371 14.6087 14.8335 13.3209 15.6522C12.8332 15.9623 12.3283 16.062 12 16.1739Z" fill="#D80027"/>
<path d="M8.86957 8.86957H12V12H8.86957V8.86957Z" fill="#D80027"/>
<path d="M13.5652 7.82614C13.5652 7.24981 13.098 6.78265 12.5217 6.78265C12.3314 6.78265 12.1536 6.8344 12 6.92337C11.8464 6.8344 11.6686 6.78265 11.4783 6.78265C10.902 6.78265 10.4348 7.24981 10.4348 7.82614H7.82611V13.0435C7.82611 14.9858 9.36858 16.109 10.5782 16.6913C10.4877 16.8459 10.4348 17.0253 10.4348 17.2175C10.4348 17.7938 10.902 18.2609 11.4783 18.2609C11.6686 18.2609 11.8464 18.2092 12 18.1202C12.1536 18.2092 12.3314 18.2609 12.5217 18.2609C13.098 18.2609 13.5652 17.7938 13.5652 17.2175C13.5652 17.0253 13.5123 16.8459 13.4218 16.6913C14.6314 16.109 16.1739 14.9858 16.1739 13.0435V7.82614H13.5652ZM14.6087 13.0435C14.6087 13.3154 14.6087 14.1428 13.3209 14.9615C12.8332 15.2716 12.3283 15.4727 12 15.5845C11.6717 15.4727 11.1668 15.2716 10.6791 14.9615C9.39131 14.1428 9.39131 13.3154 9.39131 13.0435V9.39134H14.6087V13.0435Z" fill="#FF9811"/>
</g>
<defs>
<clipPath id="clip0_43_811">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
