import type { SVGProps } from "react";

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

/**
 * Madeira icon from flag category
 *
 * @example
 * <Madeira size={16} />
 * <Madeira size={32} className="text-primary" />
 */
export const Madeira = ({ size = 16, ...props }: MadeiraProps) => (
  <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_1882)">
<path d="M17.2174 1.19072C15.6397 0.427875 13.8699 0 12 0C10.1301 0 8.36025 0.427875 6.78262 1.19072L5.73914 12L6.78262 22.8093C8.36025 23.5721 10.1301 24 12 24C13.8699 24 15.6397 23.5721 17.2174 22.8093L18.2609 12L17.2174 1.19072Z" fill="#FFDA44"/>
<path d="M6.78263 1.19116C2.76867 3.13212 0 7.24254 0 12C0 16.7575 2.76867 20.8679 6.78263 22.8089V1.19116Z" fill="#0052B4"/>
<path d="M17.2174 1.19116V22.8089C21.2313 20.8679 24 16.7575 24 12C24 7.24254 21.2313 3.13212 17.2174 1.19116Z" fill="#0052B4"/>
<path d="M15.3913 13.0435L16.1739 14.087V9.91303L15.3913 10.9565H13.0435V8.60869L14.087 7.82611H9.91303L10.9565 8.60869V10.9565H8.60869L7.82611 9.91303V14.087L8.60869 13.0435H10.9565V15.3913L9.91303 16.1739H14.087L13.0435 15.3913V13.0435H15.3913Z" fill="#D80027"/>
<path d="M15.1304 11.4783H12.5217V8.86957H11.4783V11.4783H8.86954V12.5217H11.4783V15.1305H12.5217V12.5217H15.1304V11.4783Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_1882">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
