import type { SVGProps } from "react";

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

/**
 * Cambodia — KHM icon from flag category
 *
 * @example
 * <KHM size={16} />
 * <KHM size={32} className="text-primary" />
 */
export const KHM = ({ size = 16, ...props }: KHMProps) => (
  <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_1142)">
<path d="M0 12C0 14.0789 0.528891 16.0342 1.45908 17.7391L12 18.7826L22.5409 17.7391C23.4711 16.0342 24 14.0789 24 12C24 9.92106 23.4711 7.96572 22.5409 6.26083L12 5.21735L1.45908 6.26083C0.528891 7.96572 0 9.92106 0 12H0Z" fill="#D80027"/>
<path d="M1.45908 6.26086H22.5409C20.5057 2.53073 16.5485 0 12 0C7.45148 0 3.49434 2.53073 1.45908 6.26086Z" fill="#0052B4"/>
<path d="M12 24C16.5485 24 20.5057 21.4693 22.5409 17.7391H1.45908C3.49434 21.4693 7.45148 24 12 24Z" fill="#0052B4"/>
<path d="M16.1739 14.3478V12.7826H15.1305V10.6956L14.087 9.65215L13.0435 10.6956V8.60867L12 7.56519L10.9565 8.60867V10.6956L9.91303 9.65215L8.86954 10.6956V12.7826H7.82611V14.3478H6.78262V15.913H17.2174V14.3478H16.1739Z" fill="#F0F0F0"/>
</g>
<defs>
<clipPath id="clip0_43_1142">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
