import type { SVGProps } from "react";

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

/**
 * Dominican Republic — DOM icon from flag category
 *
 * @example
 * <DOM size={16} />
 * <DOM size={32} className="text-primary" />
 */
export const DOM = ({ size = 16, ...props }: DOMProps) => (
  <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_1409)">
<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="#F0F0F0"/>
<path d="M0.413391 15.1304C1.52142 19.2415 4.75847 22.4786 8.86959 23.5866V15.1304H0.413391Z" fill="#D80027"/>
<path d="M8.86955 0.413391C4.75847 1.52138 1.52138 4.75847 0.413391 8.86955H8.86959V0.413391H8.86955Z" fill="#0052B4"/>
<path d="M23.5866 8.86955C22.4786 4.75847 19.2415 1.52138 15.1305 0.413391V8.86959H23.5866V8.86955Z" fill="#D80027"/>
<path d="M15.1305 23.5866C19.2415 22.4786 22.4786 19.2416 23.5867 15.1304H15.1305V23.5866Z" fill="#0052B4"/>
<path d="M15.1304 12C15.1304 13.729 13.7289 15.1305 12 15.1305C10.2711 15.1305 8.86954 13.729 8.86954 12C8.86954 10.2711 12 8.86957 12 8.86957C12 8.86957 15.1304 10.2711 15.1304 12Z" fill="#496E2D"/>
<path d="M8.86954 12C8.86954 10.2711 10.2711 8.86957 12 8.86957C13.7289 8.86957 15.1304 10.2711 15.1304 12" fill="#0052B4"/>
<path d="M10.2391 10.4348V12.3913C10.2391 13.3638 11.0275 14.1522 12 14.1522C12.9725 14.1522 13.7609 13.3638 13.7609 12.3913V10.4348H10.2391Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_1409">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
