import type { SVGProps } from "react";

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

/**
 * Djibouti — DJI icon from flag category
 *
 * @example
 * <DJI size={16} />
 * <DJI size={32} className="text-primary" />
 */
export const DJI = ({ size = 16, ...props }: DJIProps) => (
  <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_1374)">
<path d="M10.9565 13.0435C10.9565 13.0435 3.52168 3.51305 3.51465 3.51473C5.68618 1.34316 8.68623 0 12 0C18.6273 0 24 5.37262 24 12L10.9565 13.0435Z" fill="#338AF3"/>
<path d="M10.9565 12C10.9565 12 3.52168 20.487 3.51465 20.4853C5.68618 22.6568 8.68623 24 12 24C18.6273 24 24 18.6274 24 12H10.9565Z" fill="#6DA544"/>
<path d="M3.51471 3.51471C-1.17157 8.20099 -1.17157 15.799 3.51471 20.4853C5.45126 18.5488 7.31374 16.6863 12 12L3.51471 3.51471Z" fill="#F0F0F0"/>
<path d="M4.8567 8.86957L5.63365 11.2609H8.14831L6.11403 12.739L6.89094 15.1305L4.8567 13.6525L2.82237 15.1305L3.59947 12.739L1.56519 11.2609H4.07965L4.8567 8.86957Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_1374">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
