import type { SVGProps } from "react";

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

/**
 * Chad — TCD icon from flag category
 *
 * @example
 * <TCD size={16} />
 * <TCD size={32} className="text-primary" />
 */
export const TCD = ({ size = 16, ...props }: TCDProps) => (
  <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_1237)">
<path d="M12 0C10.5321 0 9.12602 0.264047 7.82609 0.746391L7.30432 12L7.82604 23.2536C9.12602 23.736 10.5321 24 12 24C13.4678 24 14.8739 23.736 16.1739 23.2536L16.6956 12L16.1739 0.746391C14.8739 0.264047 13.4678 0 12 0V0Z" fill="#FFDA44"/>
<path d="M24 12C24 6.84043 20.7435 2.44191 16.1739 0.746399V23.2537C20.7435 21.5581 24 17.1596 24 12Z" fill="#D80027"/>
<path d="M7.82611 23.2536V0.746399C3.2565 2.44191 0 6.84043 0 12C0 17.1596 3.2565 21.5581 7.82611 23.2536Z" fill="#0052B4"/>
</g>
<defs>
<clipPath id="clip0_43_1237">
<rect fill="white" height="24" width="24"/>
</clipPath>
</defs>
  </svg>
);
