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

function IconQAExtractComponent(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 || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-QA-extract${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 14 14" {...rest} ref={ref}><path d="M7 .59c1.767 0 3.369.718 4.526 1.876a6.386 6.386 0 0 1 1.875 4.527 6.384 6.384 0 0 1-1.875 4.527A6.384 6.384 0 0 1 7 13.396c-.009 0-.018-.003-.026-.003H1.5a.57.57 0 0 1 0-1.138H7l.027.002a5.245 5.245 0 0 0 3.695-1.541 5.248 5.248 0 0 0 1.543-3.723c0-1.454-.59-2.77-1.543-3.722A5.247 5.247 0 0 0 7 1.729c-1.454 0-2.77.588-3.723 1.542a5.248 5.248 0 0 0-1.542 3.722 5.24 5.24 0 0 0 1.052 3.158.57.57 0 1 1-.91.683 6.378 6.378 0 0 1-1.28-3.84c0-1.768.718-3.37 1.876-4.528A6.386 6.386 0 0 1 7 .59ZM4.65 4.376c.297 0 .569.053.815.16.248.103.463.255.643.454.183.198.323.438.423.72.1.282.15.6.15.955v.189c0 .354-.05.672-.15.955-.097.28-.237.52-.42.72a1.808 1.808 0 0 1-.235.212l.75.596-.692.586-.995-.803a2.106 2.106 0 0 1-1.104-.137 1.882 1.882 0 0 1-.644-.455c-.18-.2-.32-.44-.42-.72a2.913 2.913 0 0 1-.146-.954v-.189c0-.354.049-.673.146-.955.1-.282.24-.522.417-.72.18-.2.394-.35.64-.455.248-.106.523-.159.822-.159Zm6.725 4.7h-1.203l-.269-.867h-1.53l-.268.866h-1.2l1.703-4.636h1.054l1.713 4.636ZM4.65 5.25a.742.742 0 0 0-.666.36c-.074.118-.13.266-.169.442a3.012 3.012 0 0 0-.053.605v.195c0 .226.017.428.053.604.039.174.095.321.17.442a.79.79 0 0 0 .28.275.803.803 0 0 0 .391.092c.142 0 .269-.03.38-.092a.762.762 0 0 0 .277-.275c.076-.12.133-.268.171-.442.04-.176.06-.378.06-.604v-.195c0-.229-.02-.431-.06-.605a1.339 1.339 0 0 0-.171-.443.758.758 0 0 0-.663-.359Zm3.99 2.096h.998l-.5-1.615-.498 1.615Z"/></svg>;
}

const IconQAExtract = React.forwardRef(IconQAExtractComponent);
export default IconQAExtract;
