import type { SVGProps } from "react";

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

/**
 * Sardinia icon from flag category
 *
 * @example
 * <Sardinia size={16} />
 * <Sardinia size={32} className="text-primary" />
 */
export const Sardinia = ({ size = 16, ...props }: SardiniaProps) => (
  <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_2342)">
<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="M23.8984 10.4348H13.5653H13.5653V0.101578C13.0529 0.034875 12.5305 0 12 0C11.4695 0 10.9471 0.034875 10.4348 0.101578V10.4347V10.4347H0.101578C0.034875 10.9471 0 11.4695 0 12C0 12.5305 0.034875 13.0529 0.101578 13.5652H10.4347H10.4347V23.8984C10.9471 23.9651 11.4695 24 12 24C12.5305 24 13.0529 23.9652 13.5652 23.8984V13.5653V13.5653H23.8984C23.9651 13.0529 24 12.5305 24 12C24 11.4695 23.9651 10.9471 23.8984 10.4348Z" fill="#D80027"/>
<path d="M17.7392 4.17389C16.7667 4.17389 15.9496 4.839 15.718 5.73909L17.7392 6.26081L19.7604 5.73909C19.5287 4.83905 18.7116 4.17389 17.7392 4.17389Z" fill="black"/>
<path d="M15.6522 8.86955L18.2608 9.39127V8.28207C18.9942 8.09326 19.5714 7.5159 19.7602 6.78258L17.7391 6.26086H15.1304L15.6522 7.82607V8.86955Z" fill="black"/>
<path d="M19.7603 5.73914H15.1304V6.78262V7.8261H15.6522V6.78262H19.7602C19.8031 6.61589 19.8261 6.44104 19.8261 6.2609C19.8261 6.08071 19.8033 5.90587 19.7603 5.73914Z" fill="#ACABB1"/>
<path d="M6.78262 4.17389C5.81015 4.17389 4.99307 4.839 4.76141 5.73909L6.78262 6.26081L8.80382 5.73909C8.57216 4.83905 7.75509 4.17389 6.78262 4.17389Z" fill="black"/>
<path d="M4.69566 8.86955L7.30434 9.39127V8.28207C8.0377 8.09326 8.61492 7.5159 8.80369 6.78258L6.78262 6.26086H4.17389L4.69561 7.82607V8.86955H4.69566Z" fill="black"/>
<path d="M8.80383 5.73914H4.17389V6.78262V7.8261H4.69561V6.78262H8.80364C8.84658 6.61589 8.86954 6.44104 8.86954 6.2609C8.86954 6.08071 8.84676 5.90587 8.80383 5.73914Z" fill="#ACABB1"/>
<path d="M17.7392 14.6087C16.7667 14.6087 15.9496 15.2738 15.718 16.1739L17.7392 16.6956L19.7604 16.1739C19.5287 15.2738 18.7116 14.6087 17.7392 14.6087Z" fill="black"/>
<path d="M15.6522 19.3044L18.2608 19.8261V18.7169C18.9942 18.5281 19.5714 17.9507 19.7602 17.2174L17.7391 16.6957H15.1304L15.6522 18.2609V19.3044Z" fill="black"/>
<path d="M19.7603 16.1739H15.1304V17.2174V18.2609H15.6522V17.2174H19.7602C19.8031 17.0506 19.8261 16.8758 19.8261 16.6957C19.8261 16.5155 19.8033 16.3407 19.7603 16.1739Z" fill="#ACABB1"/>
<path d="M6.78262 14.6087C5.81015 14.6087 4.99307 15.2738 4.76141 16.1739L6.78262 16.6956L8.80382 16.1739C8.57216 15.2738 7.75509 14.6087 6.78262 14.6087Z" fill="black"/>
<path d="M4.69566 19.3044L7.30434 19.8261V18.7169C8.0377 18.5281 8.61492 17.9507 8.80369 17.2174L6.78262 16.6957H4.17389L4.69561 18.2609V19.3044H4.69566Z" fill="black"/>
<path d="M8.80383 16.1739H4.17389V17.2174V18.2609H4.69561V17.2174H8.80364C8.84658 17.0506 8.86954 16.8758 8.86954 16.6957C8.86954 16.5155 8.84676 16.3407 8.80383 16.1739Z" fill="#ACABB1"/>
</g>
<defs>
<clipPath id="clip0_43_2342">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
