import type { SVGProps } from "react";

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

/**
 * Oman — OMN icon from flag category
 *
 * @example
 * <OMN size={16} />
 * <OMN size={32} className="text-primary" />
 */
export const OMN = ({ size = 16, ...props }: OMNProps) => (
  <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_2162)">
<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="M0 12C0 16.5485 2.53078 20.5057 6.26086 22.5409V1.45911C2.53078 3.49433 0 7.45151 0 12Z" fill="#D80027"/>
<path d="M23.2537 16.1739C23.736 14.8739 24 13.4678 24 12C24 10.5322 23.736 9.12605 23.2537 7.82611H0.746437C0.264047 9.12605 0 10.5322 0 12C0 13.4678 0.264047 14.8739 0.746437 16.1739L12 17.2174L23.2537 16.1739Z" 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"/>
<path d="M0 12C0 17.5443 3.76036 22.2096 8.86955 23.5866V0.413391C3.76036 1.79039 0 6.45567 0 12Z" fill="#D80027"/>
<path d="M7.34147 5.28065L6.23471 4.17389L5.49689 4.9118L4.75908 4.17389L3.65232 5.28065L4.39017 6.01851L3.65222 6.75642L4.75899 7.86319L5.49685 7.12528L6.23471 7.86319L7.34147 6.75642L6.60361 6.01851L7.34147 5.28065Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_2162">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
