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

function IconPauseComponent(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 || 'font';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-Pause${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M7.90039 4.5C8.46018 4.5 8.74024 4.50041 8.9541 4.60938C9.14207 4.70522 9.29479 4.85793 9.39062 5.0459C9.49959 5.25976 9.5 5.53982 9.5 6.09961V17.9004C9.5 18.4602 9.49959 18.7402 9.39062 18.9541C9.29479 19.1421 9.14207 19.2948 8.9541 19.3906C8.74024 19.4996 8.46018 19.5 7.90039 19.5H7.09961C6.53982 19.5 6.25976 19.4996 6.0459 19.3906C5.85793 19.2948 5.70522 19.1421 5.60938 18.9541C5.50041 18.7402 5.5 18.4602 5.5 17.9004V6.09961C5.5 5.53982 5.50041 5.25976 5.60938 5.0459C5.70522 4.85793 5.85793 4.70522 6.0459 4.60938C6.25976 4.50041 6.53982 4.5 7.09961 4.5H7.90039ZM16.9004 4.5C17.4602 4.5 17.7402 4.50041 17.9541 4.60938C18.1421 4.70522 18.2948 4.85793 18.3906 5.0459C18.4996 5.25976 18.5 5.53982 18.5 6.09961V17.9004C18.5 18.4602 18.4996 18.7402 18.3906 18.9541C18.2948 19.1421 18.1421 19.2948 17.9541 19.3906C17.7402 19.4996 17.4602 19.5 16.9004 19.5H16.0996C15.5398 19.5 15.2598 19.4996 15.0459 19.3906C14.8579 19.2948 14.7052 19.1421 14.6094 18.9541C14.5004 18.7402 14.5 18.4602 14.5 17.9004V6.09961C14.5 5.53982 14.5004 5.25976 14.6094 5.0459C14.7052 4.85793 14.8579 4.70522 15.0459 4.60938C15.2598 4.50041 15.5398 4.5 16.0996 4.5H16.9004Z"/></svg>;
}

const IconPause = React.forwardRef(IconPauseComponent);
export default IconPause;
