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

function IconImportMusicComponent(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-import-music${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 d="M3.363 10.43c.064 0 .116.053.116.116v1.703h9.043v-1.703c0-.064.051-.115.114-.115h.909c.062 0 .114.05.114.115v2.272l-.011.116a.57.57 0 0 1-.557.454H2.909a.57.57 0 0 1-.57-.57v-2.272c0-.064.053-.115.115-.115h.91Zm5.091-8.09c.048 0 .09.03.107.07l.008.044v6.49l2.226-2.226a.115.115 0 0 1 .162 0l.643.642a.115.115 0 0 1 0 .162l-3.409 3.41a.115.115 0 0 1-.162 0L4.62 7.522a.115.115 0 0 1 0-.162l.643-.642a.115.115 0 0 1 .162 0L7.43 8.725v-6.27c0-.064.052-.115.115-.115h.91Z"/></svg>;
}

const IconImportMusic = React.forwardRef(IconImportMusicComponent);
export default IconImportMusic;
