import React, { ForwardedRef, useContext } from 'react';
import { OriginIconProps } from '../type';
import { Context } from '../context';

function IconCalendarCheckBoxComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hkgai';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-CalendarCheckBox${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M1.5 1.5H22.219V21.5H1.5z"/><path stroke="#000" strokeWidth="3" d="M1.5 1.5H22.219V21.5H1.5z"/><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M0 0H24V24H0z"/><g clipPath="url(#svg_ce86f44829__clip0_3842_13090)"><path d="M17.8247 4.81445L10.4888 13.9644L6.15166 9.86422L4.15039 11.7575L10.8202 18.0675L20.1605 6.70775L17.8247 4.81445Z" fill={useCurrentColor ? 'currentColor' : '#36608C'}/></g><defs><clipPath id="svg_ce86f44829__clip0_3842_13090"><path fill={useCurrentColor ? 'currentColor' : '#fff'} transform="translate(4.15 3.927)" d="M0 0H16.01V15.146H0z"/></clipPath></defs></svg>;
}

const IconCalendarCheckBox = React.forwardRef(IconCalendarCheckBoxComponent);
export default IconCalendarCheckBox;
