import type { SVGProps } from "react";

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

/**
 * Côte d’Ivoire — CIV icon from flag category
 *
 * @example
 * <CIV size={16} />
 * <CIV size={32} className="text-primary" />
 */
export const CIV = ({ size = 16, ...props }: CIVProps) => (
  <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_1731)">
<path d="M12 24C13.4679 24 14.874 23.736 16.1739 23.2536L16.6957 12L16.1739 0.746391C14.874 0.264047 13.4679 0 12 0C10.5322 0 9.12605 0.264047 7.82612 0.746391L7.30435 12L7.82607 23.2536C9.12605 23.736 10.5322 24 12 24Z" fill="#F0F0F0"/>
<path d="M0 12C0 17.1596 3.2565 21.5581 7.82611 23.2536V0.746399C3.2565 2.44191 0 6.84043 0 12Z" fill="#FF9811"/>
<path d="M16.1739 0.746399V23.2537C20.7435 21.5581 24 17.1596 24 12C24 6.84043 20.7435 2.44191 16.1739 0.746399Z" fill="#6DA544"/>
</g>
<defs>
<clipPath id="clip0_43_1731">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
