import type { SVGProps } from "react";

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

/**
 * Micronesia — FSM icon from flag category
 *
 * @example
 * <FSM size={16} />
 * <FSM size={32} className="text-primary" />
 */
export const FSM = ({ size = 16, ...props }: FSMProps) => (
  <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_1970)">
<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="#338AF3"/>
<path d="M11.9999 5.21735L12.5179 6.81166H14.1943L12.8381 7.79702L13.3561 9.39128L11.9999 8.40597L10.6437 9.39128L11.1618 7.79702L9.80554 6.81166H11.4819L11.9999 5.21735Z" fill="#F0F0F0"/>
<path d="M5.21735 12L6.81166 11.482V9.80554L7.79702 11.1618L9.39128 10.6438L8.40597 12L9.39128 13.3561L7.79702 12.8381L6.81166 14.1943V12.518L5.21735 12Z" fill="#F0F0F0"/>
<path d="M12 18.7826L11.482 17.1883H9.80554L11.1618 16.2029L10.6438 14.6086L12 15.594L13.3561 14.6086L12.8381 16.2029L14.1943 17.1883H12.518L12 18.7826Z" fill="#F0F0F0"/>
<path d="M18.7826 11.9999L17.1883 12.5179V14.1943L16.2029 12.8381L14.6086 13.3561L15.594 11.9999L14.6086 10.6438L16.2029 11.1618L17.1883 9.80554V11.4819L18.7826 11.9999Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_1970">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
