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

function IconUnorderedListComponent(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-unordered-list${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 48 48" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M5.5 7h3A1.5 1.5 0 0110 8.5v3A1.5 1.5 0 018.5 13h-3A1.5 1.5 0 014 11.5v-3A1.5 1.5 0 015.5 7zm37.647 1H15.853C15.382 8 15 8.448 15 9v2c0 .552.382 1 .853 1h27.294c.471 0 .853-.448.853-1V9c0-.552-.382-1-.853-1zm0 14H15.853c-.471 0-.853.448-.853 1v2c0 .552.382 1 .853 1h27.294c.471 0 .853-.448.853-1v-2c0-.552-.382-1-.853-1zM15.853 36h27.294c.471 0 .853.448.853 1v2c0 .552-.382 1-.853 1H15.853c-.471 0-.853-.448-.853-1v-2c0-.552.382-1 .853-1zM8.5 21h-3A1.5 1.5 0 004 22.5v3A1.5 1.5 0 005.5 27h3a1.5 1.5 0 001.5-1.5v-3A1.5 1.5 0 008.5 21zm0 14h-3A1.5 1.5 0 004 36.5v3A1.5 1.5 0 005.5 41h3a1.5 1.5 0 001.5-1.5v-3A1.5 1.5 0 008.5 35z"/></svg>;
}

const IconUnorderedList = React.forwardRef(IconUnorderedListComponent);
export default IconUnorderedList;
