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

function IconCheckCircleFillComponent(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-check-circle-fill${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M2.66675 16C2.66675 8.63621 8.63628 2.66667 16.0001 2.66667C23.3639 2.66667 29.3334 8.63621 29.3334 16C29.3334 23.3638 23.3639 29.3333 16.0001 29.3333C8.63628 29.3333 2.66675 23.3638 2.66675 16ZM14.6668 21.219L23.2762 12.6095L21.3906 10.7239L14.6668 17.4477L10.9429 13.7239L9.05729 15.6095L14.6668 21.219Z" fill={useCurrentColor ? 'currentColor' : '#009A29'}/></svg>;
}

const IconCheckCircleFill = React.forwardRef(IconCheckCircleFillComponent);
export default IconCheckCircleFill;
