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

function IconZoomOutComponent(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-zoom-out${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 48 48" {...rest} ref={ref}><path d="M35 22c0-7.18-5.82-13-13-13S9 14.82 9 22s5.82 13 13 13a12.95 12.95 0 0 0 9.192-3.808A12.953 12.953 0 0 0 35 22Zm-6-2v4H15v-4h14Zm10 2c0 3.973-1.366 7.629-3.65 10.523l7.564 7.563-2.828 2.828-7.563-7.563A16.933 16.933 0 0 1 22 39c-9.389 0-17-7.611-17-17S12.611 5 22 5s17 7.611 17 17Z"/></svg>;
}

const IconZoomOut = React.forwardRef(IconZoomOutComponent);
export default IconZoomOut;
