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

function IconCreditComponent(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 || 'font';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-Credit${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 24 24" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M14.0999 1.50043C16.0213 1.49951 17.885 2.15735 19.38 3.36423C20.8751 4.57111 21.9112 6.25407 22.3155 8.13243C22.7198 10.0108 22.468 11.971 21.6019 13.6861C20.7359 15.4013 19.308 16.7677 17.5564 17.5574C16.9965 18.7952 16.1448 19.8787 15.0742 20.715C14.0036 21.5514 12.7461 22.1156 11.4096 22.3592C10.0731 22.6028 8.6974 22.5186 7.40057 22.1139C6.10373 21.7091 4.92443 20.9958 3.9638 20.0352C3.00317 19.0745 2.28988 17.8952 1.8851 16.5984C1.48033 15.3016 1.39614 13.9259 1.63977 12.5894C1.8834 11.2529 2.44758 9.9954 3.28391 8.9248C4.12024 7.85421 5.20377 7.00245 6.44157 6.44257C7.1074 4.96936 8.18407 3.71951 9.54245 2.84291C10.9008 1.96631 12.4833 1.50018 14.0999 1.50043ZM9.90012 7.80016C8.22933 7.80016 6.62697 8.46388 5.44554 9.6453C4.26412 10.8267 3.6004 12.4291 3.6004 14.0999C3.6004 15.7707 4.26412 17.373 5.44554 18.5545C6.62697 19.7359 8.22933 20.3996 9.90012 20.3996C11.5709 20.3996 13.1733 19.7359 14.3547 18.5545C15.5361 17.373 16.1999 15.7707 16.1999 14.0999C16.1999 12.4291 15.5361 10.8267 14.3547 9.6453C13.1733 8.46388 11.5709 7.80016 9.90012 7.80016ZM9.90012 9.94206L14.0579 14.0999L9.90012 18.2577L5.7423 14.0999L9.90012 9.94206ZM9.90012 12.3181L8.11835 14.0999L9.90012 15.8817L11.6819 14.0999L9.90012 12.3181ZM14.0999 3.60034C13.2103 3.5993 12.3306 3.78717 11.519 4.15152C10.7074 4.51588 9.98237 5.04841 9.39195 5.7139C10.5787 5.64185 11.7672 5.82256 12.8789 6.24407C13.9905 6.66557 15.0001 7.31827 15.8407 8.15901C16.6813 8.99975 17.3339 10.0094 17.7553 11.1211C18.1767 12.2328 18.3572 13.4213 18.2851 14.6081C19.2397 13.7593 19.9138 12.6404 20.2178 11.3997C20.5219 10.1591 20.4417 8.85527 19.9877 7.66127C19.5338 6.46727 18.7275 5.43948 17.676 4.71422C16.6245 3.98895 15.3773 3.60049 14.0999 3.60034Z"/></svg>;
}

const IconCredit = React.forwardRef(IconCreditComponent);
export default IconCredit;
