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

function IconCalendarCheckComponent(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-CalendarCheck${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><rect x=".5" y=".5" width="14" height="14" rx="7" fill={useCurrentColor ? 'currentColor' : '#D9D9D9'} fillOpacity=".8" stroke="url(#svg_92eb5ffee6__paint0_linear_4314_28686)"/><defs><linearGradient id="svg_92eb5ffee6__paint0_linear_4314_28686" x1="0" y1="2.061" x2="15.204" y2="14.211" gradientUnits="userSpaceOnUse"><stop offset=".158" stopColor="#143975"/><stop offset="1" stopColor="#A5E1DA"/></linearGradient></defs></svg>;
}

const IconCalendarCheck = React.forwardRef(IconCalendarCheckComponent);
export default IconCalendarCheck;
