import type { SVGProps } from "react";

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

/**
 * Canada — CAN icon from flag category
 *
 * @example
 * <CAN size={16} />
 * <CAN size={32} className="text-primary" />
 */
export const CAN = ({ size = 16, ...props }: CANProps) => (
  <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_1153)">
<path d="M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z" fill="#F0F0F0"/>
<path d="M24 12C24 7.24248 21.2313 3.13173 17.2173 1.19073V22.8092C21.2313 20.8683 24 16.7575 24 12Z" fill="#D80027"/>
<path d="M0 12C0 16.7575 2.76867 20.8683 6.78263 22.8093V1.19073C2.76867 3.13173 0 7.24248 0 12Z" fill="#D80027"/>
<path d="M14.087 13.5652L16.1739 12.5217L15.1305 12V10.9565L13.0435 12L14.087 9.91304H13.0435L12 8.34784L10.9565 9.91304H9.91303L10.9565 12L8.86955 10.9565V12L7.82611 12.5217L9.91303 13.5652L9.39131 14.6087H11.4783V16.1739H12.5217V14.6087H14.6087L14.087 13.5652Z" fill="#D80027"/>
</g>
<defs>
<clipPath id="clip0_43_1153">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
