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

function IconCopyLineComponent(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-copy_line${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="M16.6 3.09564C18.4226 3.09564 19.9 4.5731 19.9 6.39564V15.7259C19.9 16.223 19.4971 16.6259 19 16.6259C18.503 16.6259 18.1 16.223 18.1 15.7259V6.39564C18.1 5.56721 17.4285 4.89564 16.6 4.89564H9.30774C8.81068 4.89564 8.40774 4.4927 8.40774 3.99564C8.40774 3.49859 8.81068 3.09564 9.30774 3.09564H16.6ZM13.3693 6.29877C15.1919 6.29877 16.6693 7.77623 16.6693 9.59877V17.5954C16.6693 19.418 15.1919 20.8954 13.3693 20.8954H7.4001C5.57756 20.8954 4.1001 19.418 4.1001 17.5954V9.59877C4.1001 7.77623 5.57756 6.29877 7.4001 6.29877H13.3693ZM14.8693 9.59877C14.8693 8.77034 14.1977 8.09877 13.3693 8.09877H7.4001C6.57167 8.09877 5.9001 8.77034 5.9001 9.59877V17.5954C5.9001 18.4239 6.57167 19.0954 7.4001 19.0954H13.3693C14.1977 19.0954 14.8693 18.4239 14.8693 17.5954V9.59877Z" clipRule="evenodd"/></svg>;
}

const IconCopyLine = React.forwardRef(IconCopyLineComponent);
export default IconCopyLine;
