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

function IconJapaneseComponent(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-Japanese${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 fillRule="evenodd" d="M2.103 4.266a2.2 2.2 0 0 1 2.2-2.2h7.467a2.2 2.2 0 0 1 2.2 2.2v7.467a2.2 2.2 0 0 1-2.2 2.2H4.303a2.2 2.2 0 0 1-2.2-2.2V4.266Zm2.2-1a1 1 0 0 0-1 1v7.467a1 1 0 0 0 1 1h7.467a1 1 0 0 0 1-1V4.266a1 1 0 0 0-1-1H4.303Z" clipRule="evenodd"/><path d="M9.109 12.496a8.71 8.71 0 0 0 .111-1.11c.378.113 2.977-2.146.833-3.055l-.02-.008a6.914 6.914 0 0 1-1.906 2.127c.105.212.23.413.37.602-.466.37-.885.62-.943.667-.011 0-.194-.237-.406-.684a6.843 6.843 0 0 1-.871.35c-1.652.537-2.225-2.147-2-2.72.175-.443.805-1.225 2.249-1.56.023-.255.057-.518.107-.791-.856.033-1.764-.071-2.633-.426.179-.327.346-.66.5-1 0 0 .792.375 2.424.23a12.23 12.23 0 0 1 .63-1.618l1 .444s-.174.38-.37.981a14.077 14.077 0 0 0 1.702-.48c.311.524.722.832.722.832s-1.18.618-2.764.902c-.054.256-.1.513-.135.772a9.767 9.767 0 0 1 1.789.103c.248-.244.222-.666.222-.666l1.055.166s-.066.3-.246.753a2.214 2.214 0 0 1 1.412 1.746c.22 1.333-1.51 3.556-2.832 3.443Zm-3.94-3.27c-.035.282.188 1.222.555 1.222.366 0 .833-.278.833-.278s-.203-1.04-.222-1.777c-.611.144-1.132.55-1.167.833Zm3.628-1.032c-.157-.077-1.277 0-1.277 0-.108.246.167 1.277.167 1.277s1.268-1.2 1.11-1.277Z"/></svg>;
}

const IconJapanese = React.forwardRef(IconJapaneseComponent);
export default IconJapanese;
