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

function IconMenuPromptComponent(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-menu-prompt${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 20 20" {...rest} ref={ref}><path fillRule="evenodd" d="M13.3171 5.95538C13.9195 5.35288 14.8968 5.35288 15.4993 5.95538L17.383 7.83907C17.9855 8.44156 17.9855 9.41885 17.383 10.0213L9.7384 17.6677C9.52486 17.8804 9.23513 18 8.93389 18H6.50795C6.19776 18 5.90028 17.8768 5.68095 17.6574C5.46162 17.4381 5.3384 17.1406 5.3384 16.8304V14.4054C5.3384 14.1041 5.4589 13.8144 5.67243 13.6009L13.3171 5.95538ZM6.04456 2.00105C6.35732 1.98333 6.63819 2.19243 6.71173 2.49722C6.91552 3.34515 7.22386 3.81651 7.64029 4.18333C8.08153 4.5714 8.66453 4.86468 9.53018 5.3006L9.61081 5.34136C9.72075 5.39662 9.81274 5.48197 9.87605 5.58748C9.93937 5.69299 9.9714 5.81432 9.96843 5.93733C9.96546 6.06034 9.9276 6.17998 9.85927 6.28231C9.79094 6.38465 9.69494 6.46546 9.58246 6.51534C8.26139 7.10366 7.66776 7.6654 7.34701 8.12082C7.19839 8.33681 7.07474 8.56895 6.97843 8.81281C6.9553 8.86876 6.93256 8.92488 6.9102 8.98115C6.83497 9.1802 6.7492 9.37511 6.65326 9.56504C6.58926 9.68523 6.48911 9.78226 6.36696 9.84243C6.24481 9.90259 6.10684 9.92284 5.97255 9.90031C5.83826 9.87778 5.71445 9.81362 5.61862 9.71688C5.52279 9.62015 5.45979 9.49575 5.43852 9.36126C5.32599 8.66395 4.88387 7.96665 4.30795 7.42441C3.7152 6.86621 3.11004 6.58888 2.78399 6.57028C2.62428 6.56153 2.47342 6.49416 2.36032 6.38108C2.24721 6.26799 2.1798 6.11715 2.17102 5.95745C2.16224 5.79775 2.2127 5.64042 2.31273 5.51562C2.41276 5.39082 2.55532 5.30731 2.7131 5.28111C3.42015 5.1615 4.07492 4.73089 4.58084 4.16915C5.09474 3.59855 5.3827 2.97302 5.43497 2.56722C5.45406 2.41626 5.52554 2.2768 5.63695 2.17316C5.74836 2.06953 5.89262 2.00919 6.04456 2.00105Z" clipRule="evenodd"/></svg>;
}

const IconMenuPrompt = React.forwardRef(IconMenuPromptComponent);
export default IconMenuPrompt;
