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

function IconCardCollectionLinearityComponent(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-card_collection_linearity${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 14 14" {...rest} ref={ref}><path fillRule="evenodd" d="M5.92657 2.22773C6.34876 1.25041 7.73076 1.23972 8.16803 2.21038L9.18399 4.46568C9.19212 4.48372 9.20884 4.49642 9.2284 4.49939L11.4614 4.83917C12.4914 4.99591 12.868 6.28528 12.0842 6.97175L10.3367 8.50235C10.3199 8.51706 10.3129 8.54006 10.3188 8.5616L10.9576 10.9001C11.2436 11.9473 10.1271 12.8215 9.17908 12.2927L7.06889 11.1156C7.05108 11.1056 7.02937 11.1057 7.01164 11.1158L4.84548 12.3478C3.93459 12.8658 2.83598 12.0753 3.0378 11.047L3.52582 8.5606C3.52966 8.54105 3.52325 8.5209 3.50883 8.50715L1.87783 6.95215C1.14009 6.24879 1.53397 5.00463 2.54209 4.85399L4.91524 4.49936C4.93519 4.49638 4.95218 4.48332 4.96017 4.4648L5.92657 2.22773ZM7.21068 2.64165C7.14822 2.50298 6.95079 2.50451 6.89047 2.64413L5.92408 4.8812C5.77214 5.23291 5.44934 5.48121 5.07042 5.53783L2.69727 5.89246C2.55325 5.91398 2.49698 6.09171 2.60237 6.19219L4.23338 7.74719C4.50736 8.0084 4.62907 8.39138 4.55616 8.76283L4.06814 11.2492C4.03931 11.3961 4.19626 11.5091 4.32638 11.4351L6.49254 10.2031C6.82944 10.0115 7.24195 10.0098 7.58042 10.1986L9.69061 11.3757C9.82604 11.4513 9.98554 11.3264 9.94468 11.1768L9.30592 8.83827C9.19415 8.42907 9.32574 7.99196 9.64485 7.71247L11.3924 6.18188C11.5044 6.08381 11.4506 5.89961 11.3034 5.87722L9.07045 5.53744C8.69875 5.48089 8.38107 5.23975 8.22665 4.89695L7.21068 2.64165Z" clipRule="evenodd"/></svg>;
}

const IconCardCollectionLinearity = React.forwardRef(IconCardCollectionLinearityComponent);
export default IconCardCollectionLinearity;
