import type { SVGProps } from "react";

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

/**
 * San Marino — SMR icon from flag category
 *
 * @example
 * <SMR size={16} />
 * <SMR size={32} className="text-primary" />
 */
export const SMR = ({ size = 16, ...props }: SMRProps) => (
  <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_2326)">
<path d="M24 12C24 18.6274 18.6274 24 12 24C5.37262 24 0 18.6274 0 12C0.521719 12 12 10.4348 12 10.4348L24 12Z" fill="#338AF3"/>
<path d="M0 12C0 5.37262 5.37262 0 12 0C18.6274 0 24 5.37262 24 12" fill="#F0F0F0"/>
<path d="M16.7633 8.28021L12 13.0435L7.23677 8.28021C6.62079 9.1946 6.26093 10.2952 6.26093 11.4783V13.0435C6.26093 15.5567 7.88491 17.6976 10.1385 18.4725C9.83772 19.062 9.88844 19.7977 10.3292 20.3478C10.9146 19.8786 11.5206 19.393 12.0348 18.981C12.5489 19.393 13.155 19.8787 13.7403 20.3478C14.1862 19.7913 14.2333 19.0446 13.9206 18.4516C16.1434 17.6599 17.7391 15.5347 17.7391 13.0435V11.4783C17.7392 10.2952 17.3793 9.19465 16.7633 8.28021Z" fill="#6DA544"/>
<path d="M12 17.2174C9.69849 17.2174 7.82611 15.3449 7.82611 13.0435V11.4783C7.82611 9.17676 9.69853 7.30438 12 7.30438C14.3015 7.30438 16.1739 9.1768 16.1739 11.4783V13.0435C16.1739 15.3449 14.3015 17.2174 12 17.2174Z" fill="#FFDA44"/>
<path d="M14.6087 13.0435V11.4783C14.6087 10.0398 13.4384 8.86957 12 8.86957C10.5616 8.86957 9.3913 10.0398 9.3913 11.4783V13.0435L12 13.5652L14.6087 13.0435Z" fill="#338AF3"/>
<path d="M9.3913 13.0435C9.3913 14.4819 10.5616 15.6521 12 15.6521C13.4384 15.6521 14.6087 14.4819 14.6087 13.0435H9.3913Z" fill="#6DA544"/>
<path d="M15.1304 7.30433C15.1304 6.43991 14.4296 5.73913 13.5652 5.73913C13.1642 5.73913 12.7987 5.89007 12.5217 6.13799V5.21736H13.0435V4.17388H12.5217V3.65216H11.4783V4.17388H10.9565V5.21736H11.4783V6.13799C11.2013 5.89007 10.8357 5.73913 10.4348 5.73913C9.57035 5.73913 8.86957 6.43991 8.86957 7.30433C8.86957 7.76779 9.07118 8.18404 9.39129 8.47068V9.3913H14.6087V8.47068C14.9288 8.18404 15.1304 7.76779 15.1304 7.30433Z" fill="#FFDA44"/>
</g>
<defs>
<clipPath id="clip0_43_2326">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
