import type { SVGProps } from "react";

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

/**
 * Barbados — BRB icon from flag category
 *
 * @example
 * <BRB size={16} />
 * <BRB size={32} className="text-primary" />
 */
export const BRB = ({ size = 16, ...props }: BRBProps) => (
  <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_930)">
<path d="M17.2174 1.19072C15.6397 0.427875 13.8698 0 12 0C10.1302 0 8.36025 0.427875 6.78262 1.19072L5.73914 12L6.78262 22.8093C8.36025 23.5721 10.1302 24 12 24C13.8698 24 15.6397 23.5721 17.2174 22.8093L18.2609 12L17.2174 1.19072Z" fill="#FFDA44"/>
<path d="M6.78263 1.19116C2.76872 3.13207 0 7.24249 0 12C0 16.7576 2.76872 20.868 6.78263 22.8089V1.19116Z" fill="#0052B4"/>
<path d="M17.2173 1.19116V22.8089C21.2313 20.868 24 16.7575 24 12C24 7.24254 21.2313 3.13207 17.2173 1.19116Z" fill="#0052B4"/>
<path d="M15.6522 7.30435L16.3521 7.65432L15.6522 7.30435L14.9521 6.95438C14.9099 7.0388 13.9959 8.89847 13.8466 11.7391H12.7826V7.30435L12 6.26086L11.2174 7.30435V11.7391H10.1533C10.004 8.89847 9.09003 7.0388 9.0478 6.95438L7.64783 7.65436C7.65748 7.67358 8.60872 9.60976 8.60872 12.5218V13.3044H11.2174V17.7392H12.7826V13.3044H15.3913V12.5217C15.3913 11.0162 15.6518 9.77476 15.8704 8.99841C16.1086 8.15185 16.3506 7.65746 16.353 7.65254L15.6522 7.30435Z" fill="black"/>
</g>
<defs>
<clipPath id="clip0_43_930">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
