import type { SVGProps } from "react";

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

/**
 * Somalia — SOM icon from flag category
 *
 * @example
 * <SOM size={16} />
 * <SOM size={32} className="text-primary" />
 */
export const SOM = ({ size = 16, ...props }: SOMProps) => (
  <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_2457)">
<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="M12 6.26086L13.295 10.2466H17.4858L14.0954 12.7099L15.3904 16.6957L12 14.2323L8.60949 16.6957L9.90455 12.7099L6.51404 10.2466H10.7049L12 6.26086Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_2457">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
