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

function IconPromptJinjaComponent(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_jinja${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="M5.333.733a.6.6 0 1 1 0 1.2c-.25 0-.525.065-.723.213-.168.127-.343.359-.343.854v3c0 .423-.178.778-.385 1.048a3.15 3.15 0 0 1-.66.618c.224.161.466.367.66.62.207.27.385.624.385 1.047V13c0 .495.175.726.343.852.198.149.473.214.723.214a.6.6 0 0 1 0 1.2c-.417 0-.975-.101-1.443-.453-.498-.373-.824-.975-.824-1.813V9.333c0-.077-.03-.18-.135-.316a2.033 2.033 0 0 0-.442-.4 4.01 4.01 0 0 0-.66-.372l-.043-.017-.009-.004v-.001a.6.6 0 0 1 0-1.114l.01-.004.042-.018a4.01 4.01 0 0 0 .66-.37c.18-.126.336-.263.442-.4.104-.137.135-.24.135-.317V3c0-.838.326-1.44.824-1.813C4.358.835 4.916.733 5.333.733Zm5.334 0c.417 0 .975.102 1.443.454.498.373.824.975.824 1.813v3c0 .077.03.18.135.316.106.138.261.275.442.4a4.014 4.014 0 0 0 .66.37l.043.02.009.003a.601.601 0 0 1 .082 1.075l-.081.04-.001-.001-.01.005-.041.017a4.121 4.121 0 0 0-.661.371c-.18.126-.336.263-.442.4-.104.137-.135.24-.135.317V13c0 .838-.326 1.44-.824 1.813-.468.352-1.026.454-1.443.454a.6.6 0 0 1 0-1.2c.25 0 .526-.066.724-.215.168-.126.342-.358.342-.852V9.333c0-.423.178-.778.385-1.048.194-.252.436-.458.66-.619a3.15 3.15 0 0 1-.66-.618c-.207-.27-.385-.625-.385-1.048V3c0-.495-.174-.727-.342-.854-.198-.148-.475-.213-.724-.213a.6.6 0 1 1 0-1.2Z"/></svg>;
}

const IconPromptJinja = React.forwardRef(IconPromptJinjaComponent);
export default IconPromptJinja;
