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

function IconBasicListComponent(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-basic_list${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="M5.963 8c0-.368.298-.667.667-.667h7.11a.667.667 0 0 1 0 1.334H6.63A.667.667 0 0 1 5.963 8Zm0 4.148c0-.368.298-.667.667-.667h7.11a.667.667 0 0 1 0 1.334H6.63a.667.667 0 0 1-.667-.667Zm0-8.296c0-.368.298-.667.667-.667h7.11a.667.667 0 0 1 0 1.334H6.63a.667.667 0 0 1-.667-.667Z" clipRule="evenodd"/><path d="M3.592 2.852h-.667a.667.667 0 0 0-.666.667v.666c0 .368.298.667.666.667h.667a.667.667 0 0 0 .667-.667V3.52a.667.667 0 0 0-.667-.667Zm0 4.148h-.667a.667.667 0 0 0-.666.667v.666c0 .369.298.667.666.667h.667a.667.667 0 0 0 .667-.667v-.666A.667.667 0 0 0 3.592 7Zm0 4.148h-.667a.667.667 0 0 0-.666.667v.667c0 .368.298.666.666.666h.667a.667.667 0 0 0 .667-.666v-.667a.667.667 0 0 0-.667-.667Z"/></svg>;
}

const IconBasicList = React.forwardRef(IconBasicListComponent);
export default IconBasicList;
