import type { SVGProps } from "react";

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

/**
 * Sudan — SDN icon from flag category
 *
 * @example
 * <SDN size={16} />
 * <SDN size={32} className="text-primary" />
 */
export const SDN = ({ size = 16, ...props }: SDNProps) => (
  <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_2541)">
<path d="M1.19072 6.78262C0.427875 8.36025 0 10.1301 0 12C0 13.8699 0.427875 15.6397 1.19072 17.2174L12 18.2609L22.8093 17.2174C23.5721 15.6397 24 13.8699 24 12C24 10.1301 23.5721 8.36025 22.8093 6.78262L12 5.73914L1.19072 6.78262Z" fill="#F0F0F0"/>
<path d="M1.19113 17.2174C3.13204 21.2313 7.24246 24 12 24C16.7575 24 20.8679 21.2313 22.8088 17.2174H1.19113Z" fill="black"/>
<path d="M1.19113 6.78263H22.8088C20.8679 2.76867 16.7575 0 12 0C7.24246 0 3.13204 2.76867 1.19113 6.78263Z" fill="#D80027"/>
<path d="M3.51468 3.51468C-1.1716 8.20096 -1.1716 15.799 3.51468 20.4853C5.45123 18.5488 7.31371 16.6863 12 12L3.51468 3.51468Z" fill="#496E2D"/>
</g>
<defs>
<clipPath id="clip0_43_2541">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
