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

function IconAgentQuoteComponent(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-agent_quote${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 fillRule="evenodd" d="M10.2632 3.2217C8.12069 2.68608 5.87931 2.68608 3.73684 3.2217C2.98897 3.40866 2.41982 4.01615 2.28192 4.7746L2.2686 4.84786C2.07051 5.93733 2.07051 8.05359 2.2686 9.14306L2.28192 9.21632C2.41982 9.97477 2.98897 10.5823 3.73684 10.7692C5.87931 11.3048 8.12069 11.3048 10.2632 10.7692C11.011 10.5823 11.5802 9.97477 11.7181 9.21632L11.7314 9.14306C11.9295 8.05359 11.9295 5.93733 11.7314 4.84786L11.7181 4.7746C11.5802 4.01614 11.011 3.40866 10.2632 3.2217ZM3.46519 2.13511C5.78602 1.5549 8.21398 1.5549 10.5348 2.13511C11.7095 2.42877 12.6034 3.38294 12.82 4.57424L12.8334 4.6475C13.0555 5.86946 13.0555 8.12146 12.8334 9.34342L12.82 9.41668C12.6034 10.608 11.7095 11.5621 10.5348 11.8558C8.21398 12.436 5.78602 12.436 3.46519 11.8558C2.29052 11.5621 1.39655 10.608 1.17995 9.41668L1.16663 9.34342C0.944457 8.12146 0.944456 5.86946 1.16663 4.6475L1.17995 4.57424C1.39655 3.38294 2.29051 2.42878 3.46519 2.13511ZM4.51101 7.81055C4.20173 7.81055 3.951 7.55982 3.951 7.25053V6.00605C3.951 5.69676 4.20173 5.44603 4.51101 5.44603C4.8203 5.44603 5.07103 5.69676 5.07103 6.00605V7.25053C5.07103 7.55982 4.8203 7.81055 4.51101 7.81055ZM8.92894 7.25053C8.92894 7.55982 9.17967 7.81055 9.48896 7.81055C9.79825 7.81055 10.049 7.55982 10.049 7.25053V6.00605C10.049 5.69676 9.79825 5.44603 9.48896 5.44603C9.17967 5.44603 8.92894 5.69676 8.92894 6.00605V7.25053Z" clipRule="evenodd"/></svg>;
}

const IconAgentQuote = React.forwardRef(IconAgentQuoteComponent);
export default IconAgentQuote;
