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

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

    const prefix = prefixFromProps || prefixFromContext || 'font';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-Check_Bold${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M18.9395 4.93953C19.5252 4.35374 20.4748 4.35375 21.0605 4.93953C21.6463 5.52532 21.6463 6.47486 21.0605 7.06062L10.0605 18.0606C9.47479 18.6464 8.52525 18.6463 7.93945 18.0606L2.93945 13.0606C2.35367 12.4748 2.35367 11.5253 2.93945 10.9395C3.52524 10.3537 4.47476 10.3537 5.06055 10.9395L9 14.879L18.9395 4.93953Z" stroke="#000" strokeLinecap="round" strokeLinejoin="round"/></svg>;
}

const IconCheckBold = React.forwardRef(IconCheckBoldComponent);
export default IconCheckBold;
