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

function IconPaperPlaneRightComponent(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 || 'hkgai';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-PaperPlaneRight${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 32 32" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M28.984 14.2503L7.98396 2.26402C7.62974 2.06461 7.22317 1.97787 6.81841 2.01536C6.41365 2.05285 6.02992 2.21278 5.71834 2.47385C5.40677 2.73492 5.18214 3.08473 5.07439 3.47668C4.96664 3.86864 4.98088 4.28411 5.11521 4.66777L8.94396 16.0003L5.11521 27.334C5.00866 27.6356 4.97599 27.9584 5.01996 28.2752C5.06393 28.592 5.18324 28.8937 5.36789 29.1548C5.55254 29.416 5.79714 29.6291 6.08116 29.7762C6.36519 29.9233 6.68035 30.0001 7.00021 30.0003C7.34771 29.9995 7.68915 29.9091 7.99146 29.7378L28.9815 17.7315C29.2911 17.5581 29.5489 17.3054 29.7286 16.9994C29.9083 16.6934 30.0034 16.3451 30.004 15.9902C30.0047 15.6354 29.9109 15.2867 29.7323 14.9801C29.5537 14.6734 29.2967 14.4198 28.9877 14.2453L28.984 14.2503ZM7.00021 28.0003C7.00075 27.9953 7.00075 27.9903 7.00021 27.9853L10.7177 17.0003H18.0002C18.2654 17.0003 18.5198 16.8949 18.7073 16.7074C18.8949 16.5198 19.0002 16.2655 19.0002 16.0003C19.0002 15.7351 18.8949 15.4807 18.7073 15.2932C18.5198 15.1056 18.2654 15.0003 18.0002 15.0003H10.7177L7.00771 4.02027C7.00648 4.01319 7.00394 4.00641 7.00021 4.00027L28.0002 15.979L7.00021 28.0003Z"/></svg>;
}

const IconPaperPlaneRight = React.forwardRef(IconPaperPlaneRightComponent);
export default IconPaperPlaneRight;
