import type { SVGProps } from "react";

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

/**
 * Botswana — BWA icon from flag category
 *
 * @example
 * <BWA size={16} />
 * <BWA size={32} className="text-primary" />
 */
export const BWA = ({ size = 16, ...props }: BWAProps) => (
  <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_1015)">
<path d="M0.566625 8.34777C0.199031 9.49944 -4.68667e-05 10.7263 8.276e-09 11.9999C-4.68667e-05 13.2735 0.199031 14.5004 0.566672 15.6521L12 16.1739L23.4333 15.6521C23.8008 14.5004 24 13.2734 24 12C24 10.7264 23.8009 9.49944 23.4333 8.34777L12 7.82605L0.566625 8.34777Z" fill="#F0F0F0"/>
<path d="M24 12C24 11.2881 23.9377 10.5908 23.8187 9.91296H0.181313C0.0623437 10.5908 0 11.288 0 11.9999C0 12.7119 0.0623906 13.4091 0.181313 14.0869H23.8187C23.9376 13.409 24 12.7118 24 12Z" fill="black"/>
<path d="M12 24C17.3539 24 21.8881 20.4936 23.4333 15.6521H0.56665C2.11188 20.4935 6.64615 23.9999 12 24Z" fill="#338AF3"/>
<path d="M12 6.1037e-05C6.6462 6.1037e-05 2.11198 3.50645 0.56665 8.3478L23.4332 8.34784C21.8881 3.50645 17.3538 -3.2713e-05 12 6.1037e-05Z" fill="#338AF3"/>
</g>
<defs>
<clipPath id="clip0_43_1015">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
