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

function IconAdvancedReviewComponent(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 || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-advanced-review${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 18 18" {...rest} ref={ref}><g clipPath="url(#svg_608c24eaa2__svg_27f26b0d63__clip0_19572_973247)"><path fill={useCurrentColor ? 'currentColor' : '#FBA832'} fillRule="evenodd" d="M14.2018 3.79821L12.9609 1.7108C12.6318 1.15719 11.9776 0.886203 11.3534 1.04496L9 1.64356L6.64655 1.04496C6.02238 0.886203 5.36817 1.15719 5.03908 1.7108L3.79821 3.79821L1.7108 5.03908C1.15719 5.36817 0.886203 6.02238 1.04496 6.64655L1.64356 9L1.04496 11.3534C0.886203 11.9776 1.15719 12.6318 1.7108 12.9609L3.79821 14.2018L5.03908 16.2892C5.36817 16.8428 6.02238 17.1138 6.64655 16.955L9 16.3564L11.3534 16.955C11.9776 17.1138 12.6318 16.8428 12.9609 16.2892L14.2018 14.2018L16.2892 12.9609C16.8428 12.6318 17.1138 11.9776 16.955 11.3534L16.3564 9L16.955 6.64655C17.1138 6.02238 16.8428 5.36817 16.2892 5.03908L14.2018 3.79821ZM11.453 6.42138C11.7683 6.07155 12.3156 6.02873 12.6754 6.32573C13.0352 6.62274 13.0714 7.1471 12.7561 7.49694L8.78174 11.9071C8.62191 12.0845 8.40245 12.1829 8.17801 12.1982C7.91388 12.2438 7.63334 12.1721 7.42823 11.981L4.97343 9.69427C4.6329 9.37706 4.62926 8.85108 4.96528 8.51946C5.30131 8.18784 5.84976 8.17615 6.19028 8.49336L8.0362 10.2129L11.453 6.42138Z" clipRule="evenodd"/></g><defs><clipPath id="svg_608c24eaa2__svg_27f26b0d63__clip0_19572_973247"><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M0 0H18V18H0z"/></clipPath></defs></svg>;
}

const IconAdvancedReview = React.forwardRef(IconAdvancedReviewComponent);
export default IconAdvancedReview;
