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

function IconCaretDownRedComponent(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-caret-down-red${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}><g clipPath="url(#svg_cea1334c5e__svg_cea1334c5e__clip0_10211_36273)"><path d="M8.4005 17.6477C7.84844 16.9982 8.31003 16 9.16244 16H38.8376C39.69 16 40.1516 16.9982 39.5995 17.6476L24.7619 35.1036C24.3626 35.5734 23.6374 35.5734 23.2381 35.1036L8.4005 17.6477Z"/></g><defs><clipPath id="svg_cea1334c5e__svg_cea1334c5e__clip0_10211_36273"><path d="M0 0H48V48H0z"/></clipPath></defs></svg>;
}

const IconCaretDownRed = React.forwardRef(IconCaretDownRedComponent);
export default IconCaretDownRed;
