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

function IconSimplifiedChineseComponent(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-Simplified_Chinese${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 24 24" {...rest} ref={ref}><path fillRule="evenodd" d="M3.15479 6.39961C3.15479 4.57707 4.63225 3.09961 6.45479 3.09961H17.6548C19.4773 3.09961 20.9548 4.57707 20.9548 6.39961V17.5996C20.9548 19.4221 19.4773 20.8996 17.6548 20.8996H6.45478C4.63224 20.8996 3.15479 19.4221 3.15479 17.5996V6.39961ZM6.45479 4.89961C5.62636 4.89961 4.95479 5.57118 4.95479 6.39961V17.5996C4.95479 18.428 5.62636 19.0996 6.45478 19.0996H17.6548C18.4832 19.0996 19.1548 18.428 19.1548 17.5996V6.39961C19.1548 5.57118 18.4832 4.89961 17.6548 4.89961H6.45479Z" clipRule="evenodd"/><path d="M8.27999 7.01202H11.988V8.18802H8.27999V7.01202ZM12.924 7.02402H17.412V8.18802H12.924V7.02402ZM8.25599 6.02802L9.59999 6.38802C9.43999 6.79602 9.24799 7.20002 9.02399 7.60002C8.79999 8.00002 8.55999 8.37602 8.30399 8.72802C8.05599 9.07202 7.79999 9.37202 7.53599 9.62802C7.44799 9.54802 7.33199 9.46002 7.18799 9.36402C7.05199 9.26802 6.90799 9.17202 6.75599 9.07602C6.60399 8.98002 6.47199 8.90802 6.35999 8.86002C6.75999 8.51602 7.12399 8.09202 7.45199 7.58802C7.78799 7.08402 8.05599 6.56402 8.25599 6.02802ZM13.14 6.06402L14.496 6.37602C14.32 6.96802 14.08 7.54002 13.776 8.09202C13.472 8.64402 13.152 9.10402 12.816 9.47202C12.736 9.39202 12.624 9.30402 12.48 9.20802C12.336 9.11202 12.188 9.01602 12.036 8.92002C11.892 8.82402 11.764 8.75202 11.652 8.70402C11.98 8.38402 12.276 7.98802 12.54 7.51602C12.804 7.04402 13.004 6.56002 13.14 6.06402ZM8.93999 7.92402L10.092 7.46802C10.268 7.71602 10.44 7.99602 10.608 8.30802C10.784 8.61202 10.912 8.88002 10.992 9.11202L9.75599 9.62802C9.69199 9.40402 9.57999 9.13202 9.41999 8.81202C9.25999 8.48402 9.09999 8.18802 8.93999 7.92402ZM14.076 7.87602L15.24 7.36002C15.44 7.61602 15.644 7.90402 15.852 8.22402C16.06 8.54402 16.216 8.82402 16.32 9.06402L15.084 9.64002C15.004 9.40002 14.864 9.11602 14.664 8.78802C14.464 8.45202 14.268 8.14802 14.076 7.87602ZM10.368 13.324H13.644V14.296H10.368V13.324ZM7.05599 10.948H8.45999V17.356H7.05599V10.948ZM10.26 9.68802H16.44V10.96H10.26V9.68802ZM7.67999 9.95202L8.72399 9.24402C8.97199 9.44402 9.22399 9.68402 9.47999 9.96402C9.73599 10.236 9.93199 10.476 10.068 10.684L8.93999 11.476C8.82799 11.26 8.64799 11.008 8.39999 10.72C8.15999 10.432 7.91999 10.176 7.67999 9.95202ZM15.576 9.68802H16.992V15.844C16.992 16.188 16.948 16.452 16.86 16.636C16.78 16.82 16.624 16.964 16.392 17.068C16.168 17.156 15.888 17.212 15.552 17.236C15.224 17.26 14.836 17.268 14.388 17.26C14.356 17.084 14.3 16.88 14.22 16.648C14.14 16.416 14.056 16.212 13.968 16.036C14.144 16.044 14.324 16.052 14.508 16.06C14.7 16.068 14.872 16.072 15.024 16.072C15.176 16.064 15.28 16.06 15.336 16.06C15.432 16.06 15.496 16.044 15.528 16.012C15.56 15.98 15.576 15.924 15.576 15.844V9.68802ZM11.016 12.712V14.944H13.056V12.712H11.016ZM9.80399 11.656H14.328V16H9.80399V11.656Z"/></svg>;
}

const IconSimplifiedChinese = React.forwardRef(IconSimplifiedChineseComponent);
export default IconSimplifiedChinese;
