import type { SVGProps } from "react";

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

/**
 * Isle of Man — IMN icon from flag category
 *
 * @example
 * <IMN size={16} />
 * <IMN size={32} className="text-primary" />
 */
export const IMN = ({ size = 16, ...props }: IMNProps) => (
  <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_1718)">
<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="#D80027"/>
<path d="M16.4432 8.04431L15.595 11.0711L13.0502 10.6012L11.4121 7.22452L6.98678 8.79488L6.63779 7.81144L5.47998 7.6688L6.35237 10.1273L9.39779 9.34852L10.2632 11.7874L8.158 14.8943L11.7307 17.9415L11.0535 18.7354L11.5089 19.8095L13.2019 17.8246L11.0047 15.5767L12.6841 13.6078L16.4274 13.8775L17.28 9.25983L18.3062 9.44935L19.0088 8.51794L16.4432 8.04431Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_1718">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
