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

function IconRocketComponent(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-Rocket${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 22 22" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M12.6046 2.00011L17.8852 2.07104C18.5509 2.07999 19.0884 2.61743 19.0973 3.2831L19.1687 8.56416C19.1732 8.89575 19.0435 9.2151 18.809 9.44962L15.6114 12.6472L15.7508 17.0787C15.7614 17.4179 15.6314 17.7463 15.3915 17.9862L15.0276 18.35C14.7931 18.5845 14.4738 18.7143 14.1422 18.7098L11.756 18.6777C11.436 18.6735 11.1301 18.5444 10.9038 18.318L9.70019 17.1145C9.6443 17.0749 9.59099 17.03 9.54091 16.9799L4.4498 11.8888L2.81306 10.2524C2.58666 10.026 2.45757 9.72018 2.45327 9.40004L2.42123 7.01389C2.41678 6.68231 2.54653 6.36299 2.78101 6.12851L3.14483 5.76471C3.38474 5.52478 3.71318 5.39476 4.05231 5.40543L8.53286 5.54629L11.7193 2.3599C11.9537 2.12541 12.2731 1.99566 12.6046 2.00011ZM17.5281 8.41345L17.4643 3.70362L12.756 3.64019L5.63725 10.7588L10.4099 15.5316L17.5281 8.41345ZM4.20539 14.1314C4.52554 13.8113 4.52554 13.2923 4.20539 12.9721C3.88525 12.652 3.36618 12.652 3.04604 12.9721L2.24011 13.778C1.91996 14.0981 1.91996 14.6172 2.24011 14.9374C2.56025 15.2575 3.07932 15.2575 3.39946 14.9374L4.20539 14.1314ZM6.62104 15.7083C6.94122 15.3882 6.94122 14.8691 6.62104 14.5489C6.30091 14.2288 5.78184 14.2288 5.46171 14.5489L3.30758 16.7031C2.98744 17.0232 2.98744 17.5423 3.30758 17.8625C3.62773 18.1826 4.14679 18.1826 4.46694 17.8625L6.62104 15.7083ZM8.19816 18.1239C8.51829 17.8038 8.51829 17.2847 8.19816 16.9646C7.87798 16.6444 7.35895 16.6444 7.03878 16.9646L6.23286 17.7705C5.91273 18.0907 5.91273 18.6098 6.23286 18.9299C6.55303 19.25 7.07206 19.25 7.39224 18.9299L8.19816 18.1239ZM4.4497 9.57168L6.88775 7.13366L4.17833 7.0482L4.06161 7.16493L4.08913 9.21113L4.4497 9.57168ZM11.5844 16.6813L14.0225 14.2432L14.108 16.9533L13.9918 17.0694L11.9451 17.0419L11.5844 16.6813ZM14.5644 9.75789C15.4463 8.87608 15.4463 7.44636 14.5644 6.56455C13.6826 5.68271 12.2528 5.68271 11.3711 6.56455C10.4892 7.44636 10.4892 8.87608 11.3711 9.75789C12.2528 10.6397 13.6826 10.6397 14.5644 9.75789ZM12.5295 7.72303C12.7716 7.48105 13.164 7.48105 13.406 7.72303C13.648 7.96507 13.648 8.35743 13.406 8.59942C13.164 8.84141 12.7716 8.84141 12.5295 8.59942C12.2875 8.35743 12.2875 7.96507 12.5295 7.72303Z"/></svg>;
}

const IconRocket = React.forwardRef(IconRocketComponent);
export default IconRocket;
