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

function IconWfTerminologyBankComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-wf-terminology-bank${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 24 24" {...rest} ref={ref}><g><path fill={useCurrentColor ? 'currentColor' : '#4E88E2'} d="M16.8 0H7.2A7.2 7.2 0 0 0 0 7.2v9.6A7.2 7.2 0 0 0 7.2 24h9.6a7.2 7.2 0 0 0 7.2-7.2V7.2A7.2 7.2 0 0 0 16.8 0Z"/><path fill={useCurrentColor ? 'currentColor' : '#fff'} fillRule="evenodd" d="M17.95 5.636c0-.35-.332-.636-.743-.636H6.794c-.41 0-.744.286-.744.636v12.728c0 .35.333.636.744.636h10.413c.41 0 .744-.286.744-.636V5.636ZM9.464 11.3a.612.612 0 1 0 0 1.225h3.325a.612.612 0 1 0 0-1.225H9.463ZM8.85 9.054c0-.338.275-.612.613-.612h5.075a.612.612 0 1 1 0 1.225H9.463a.613.613 0 0 1-.613-.613Zm.613 5.104a.612.612 0 1 0 0 1.225h5.075a.612.612 0 1 0 0-1.225H9.463Z" clipRule="evenodd"/></g></svg>;
}

const IconWfTerminologyBank = React.forwardRef(IconWfTerminologyBankComponent);
export default IconWfTerminologyBank;
