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

function IconPromptWrittenOptimizationComponent(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-prompt_written-optimization${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><path d="M12.67.832a.6.6 0 0 1 .754.077l1.667 1.667a.6.6 0 0 1 0 .848l-5 5a.6.6 0 0 1-.424.176H8a.6.6 0 0 1-.6-.6V6.333c0-.159.064-.311.176-.424l5-5 .094-.077ZM8.6 6.582V7.4h.818l4.4-4.4-.819-.819-4.4 4.4Z"/><path d="M14.067 13c0-.589-.478-1.066-1.067-1.066H3A2.267 2.267 0 0 1 3 7.4h2.333a.6.6 0 1 1 0 1.2H3a1.068 1.068 0 0 0 0 2.133h10a2.267 2.267 0 0 1 0 4.534H6a.6.6 0 1 1 0-1.2h7c.59 0 1.067-.478 1.067-1.067Z"/></svg>;
}

const IconPromptWrittenOptimization = React.forwardRef(IconPromptWrittenOptimizationComponent);
export default IconPromptWrittenOptimization;
