import type { SVGProps } from "react";

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

/**
 * Brunei — BRN icon from flag category
 *
 * @example
 * <BRN size={16} />
 * <BRN size={32} className="text-primary" />
 */
export const BRN = ({ size = 16, ...props }: BRNProps) => (
  <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_1108)">
<path d="M12.0001 23.9983C18.6266 23.9983 23.9984 18.6265 23.9984 12.0001C23.9984 5.37363 18.6266 0.00183105 12.0001 0.00183105C5.37369 0.00183105 0.00189209 5.37363 0.00189209 12.0001C0.00189209 18.6265 5.37369 23.9983 12.0001 23.9983Z" fill="#F0F0F0"/>
<path d="M1.60928 6.00085C1.06772 6.93875 0.668243 7.9193 0.402222 8.91809L20.4679 20.5031C21.1998 19.7733 21.8494 18.9369 22.3908 17.9991L1.60928 6.00085Z" fill="black"/>
<path d="M17.9992 1.6092C13.1983 -1.16253 7.27882 -0.238742 3.53217 3.4969L23.5978 15.0818C24.9597 9.9694 22.7999 4.38098 17.9992 1.6092Z" fill="#FFDA44"/>
<path d="M6.00091 22.3908C10.8017 25.1625 16.7213 24.2387 20.4679 20.5031L0.402184 8.91809C-0.959611 14.0306 1.20006 19.619 6.00091 22.3908Z" fill="#FFDA44"/>
<path d="M15.3909 10.6959C15.3909 12.5685 13.8727 14.0867 12 14.0867C10.1273 14.0867 8.60922 12.5686 8.60922 10.6959C8.60922 10.112 8.75683 9.56257 9.01681 9.08289C8.281 9.83539 7.82672 10.8644 7.82672 12C7.82672 14.3049 9.69515 16.1734 12 16.1734C14.3049 16.1734 16.1734 14.3049 16.1734 12C16.1734 10.8644 15.7191 9.83539 14.9833 9.08289C15.2433 9.56266 15.3909 10.112 15.3909 10.6959Z" fill="#D80027"/>
<path d="M11.2177 6.78345H12.7827V14.6084H11.2177V6.78345Z" fill="#D80027"/>
<path d="M14.6084 8.34839H9.39178C9.39178 8.70854 9.70553 9.00048 10.0656 9.00048H10.0439C10.0439 9.36063 10.3359 9.65257 10.696 9.65257C10.696 10.0127 10.988 10.3047 11.3481 10.3047H12.6522C13.0123 10.3047 13.3043 10.0127 13.3043 9.65257C13.6644 9.65257 13.9564 9.36063 13.9564 9.00048H13.9347C14.2947 9.00043 14.6084 8.70858 14.6084 8.34839Z" fill="#D80027"/>
<path d="M8.34851 15.1301H15.6518V16.6951H8.34851V15.1301Z" fill="#D80027"/>
<path d="M13.5651 15.6517H16.695V17.2167H13.5651V15.6517Z" fill="#D80027"/>
<path d="M7.30518 15.6517H10.4351V17.2167H7.30518V15.6517Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_1108">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
