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

function IconLock1Component(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-lock_1${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 12 12" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M6 0.849609C7.60161 0.849609 8.90039 2.14837 8.90039 3.75V4.89941H9.60059C10.2078 4.89976 10.7002 5.3927 10.7002 6V10.0498C10.7002 10.6571 10.2078 11.1491 9.60059 11.1494H2.40039C1.79288 11.1494 1.2998 10.6573 1.2998 10.0498V6C1.2998 5.39249 1.79288 4.89941 2.40039 4.89941H3.09961V3.75C3.09961 2.14837 4.39839 0.849609 6 0.849609ZM2.60059 9.84961H9.40039V6.2002H2.60059V9.84961ZM6 6.7002C6.35899 6.7002 6.65039 6.9916 6.65039 7.35059V8.7002C6.65013 9.05896 6.35882 9.35059 6 9.35059C5.64118 9.35059 5.34987 9.05896 5.34961 8.7002V7.35059C5.34961 6.9916 5.64101 6.7002 6 6.7002ZM6 2.15039C5.11635 2.15039 4.40039 2.86635 4.40039 3.75V4.89941H7.59961V3.75C7.59961 2.86635 6.88365 2.15039 6 2.15039Z"/></svg>;
}

const IconLock1 = React.forwardRef(IconLock1Component);
export default IconLock1;
