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

function IconAiSummaryComponent(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-ai_summary${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 48 48" fill={useCurrentColor ? 'currentColor' : 'none'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><g clipPath="url(#svg_b4b475ea40__clip0_46649_694)"><path fillRule="evenodd" clipRule="evenodd" d="M7.75 5.7594V42.2406H25.3C25.8523 42.2406 26.3 42.6883 26.3 43.2406V45C26.3 45.5523 25.8523 46 25.3 46H7C5.34315 46 4 44.6535 4 42.9925V5.00752C4 3.34651 5.34315 2 7 2H37C38.6569 2 40 3.34651 40 5.00752V22.7501C40 23.3023 39.5523 23.7501 39 23.7501H37.25C36.6977 23.7501 36.25 23.3023 36.25 22.7501V5.7594H7.75ZM31 18C31.5523 18 32 17.5523 32 17V15C32 14.4477 31.5523 14 31 14L13 14C12.4477 14 12 14.4477 12 15L12 17C12 17.5523 12.4477 18 13 18L31 18ZM24 25C24 25.5523 23.5523 26 23 26H13C12.4477 26 12 25.5523 12 25L12 23C12 22.4477 12.4477 22 13 22L23 22C23.5523 22 24 22.4477 24 23V25ZM31.0973 33.988C32.5331 33.6012 33.6541 32.4786 34.0386 31.0422L34.5522 29.1237C34.9533 27.6254 37.0794 27.6254 37.4805 29.1237L37.9975 31.055C38.3826 32.4936 39.5063 33.6173 40.9449 34.0024L42.8763 34.5195C44.3746 34.9206 44.3746 37.0466 42.8763 37.4478L40.9578 37.9614C39.5214 38.3459 38.3987 39.4669 38.012 40.9027L37.4799 42.8785C37.0771 44.3738 34.9555 44.3738 34.5528 42.8785L34.0241 40.9155C33.638 39.4818 32.5181 38.362 31.0844 37.9758L29.1215 37.4472C27.6262 37.0444 27.6262 34.9228 29.1215 34.5201L31.0973 33.988Z" fill={useCurrentColor ? 'currentColor' : 'url(#svg_b4b475ea40__paint0_linear_46649_694)'}/></g><defs><linearGradient id="svg_b4b475ea40__paint0_linear_46649_694" x1="4" y1="87.8" x2="67.596" y2="75.363" gradientUnits="userSpaceOnUse"><stop offset=".1" stopColor="#3B91FF"/><stop offset=".5" stopColor="#0D5EFF"/><stop offset=".85" stopColor="#C069FF"/></linearGradient><clipPath id="svg_b4b475ea40__clip0_46649_694"><path fill={useCurrentColor ? 'currentColor' : '#fff'} d="M0 0H48V48H0z"/></clipPath></defs></svg>;
}

const IconAiSummary = React.forwardRef(IconAiSummaryComponent);
export default IconAiSummary;
