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

function IconWechatComponent(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-Wechat${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 14 14" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M9.62495 4.38436C9.8901 4.38436 10.1491 4.40639 10.4046 4.43789C9.94266 2.40938 7.81207 0.875 5.25008 0.875C2.35025 0.875 0 2.8393 0 5.2617C0 6.65833 0.785799 7.89743 2.00463 8.69918L1.31248 10.0872L3.19801 9.27735C3.60234 9.42134 4.02249 9.53991 4.47125 9.59509C4.40993 9.32738 4.37508 9.05295 4.37508 8.77128C4.37508 6.35231 6.72959 4.38436 9.62495 4.38436ZM7.00009 2.84889C7.36242 2.84889 7.65627 3.14365 7.65627 3.50698C7.65627 3.87043 7.36245 4.16498 7.00009 4.16498C6.63755 4.16498 6.34382 3.87043 6.34382 3.50698C6.34382 3.14362 6.63755 2.84889 7.00009 2.84889ZM3.50002 4.16498C3.13763 4.16498 2.84378 3.87043 2.84378 3.50698C2.84378 3.14365 3.13766 2.84889 3.50002 2.84889C3.86237 2.84889 4.15628 3.14365 4.15628 3.50698C4.15625 3.87043 3.86234 4.16498 3.50002 4.16498Z"/><path d="M14 8.77122C14 6.833 12.0407 5.26171 9.62495 5.26171C7.20909 5.26171 5.25008 6.833 5.25008 8.77122C5.25008 10.7093 7.20909 12.2806 9.62495 12.2806C10.0222 12.2806 10.4002 12.2245 10.7668 12.1447L13.125 13.1579L12.3094 11.5235C13.3315 10.8812 14 9.89338 14 8.77122ZM8.31251 8.55184C7.95015 8.55184 7.65624 8.2572 7.65624 7.89369C7.65624 7.53035 7.95012 7.23581 8.31251 7.23581C8.67499 7.23581 8.96871 7.53048 8.96871 7.89369C8.96871 8.25723 8.67493 8.55184 8.31251 8.55184ZM10.9375 8.55184C10.5749 8.55184 10.2813 8.2572 10.2813 7.89369C10.2813 7.53035 10.5749 7.23581 10.9375 7.23581C11.3 7.23581 11.5937 7.53048 11.5937 7.89369C11.5937 8.25723 11.3 8.55184 10.9375 8.55184Z"/></svg>;
}

const IconWechat = React.forwardRef(IconWechatComponent);
export default IconWechat;
