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

function IconPythonOutlineComponent(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-PythonOutline${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 16 16" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M10.3359 0.912109C11.4403 0.912109 12.3356 1.80784 12.3359 2.91211V4.24512H13.335C14.6246 4.24531 15.6699 5.29142 15.6689 6.58105L15.666 9.91406C15.6646 11.3858 14.4708 12.5781 12.999 12.5781H12.3271V13.5781C12.327 14.6825 11.4316 15.5781 10.3271 15.5781H5.66992C4.56561 15.5779 3.6701 14.6824 3.66992 13.5781V12.9121H3.00293C1.53079 12.9118 0.336465 11.7182 0.335938 10.2461V7.24609C0.336113 5.7737 1.53058 4.57945 3.00293 4.5791H4.24902V2.91211C4.24938 1.80821 5.14518 0.912709 6.24902 0.912109H10.3359ZM12.3291 6.90723C12.3271 8.01036 11.4323 8.9043 10.3291 8.9043H5.66992C5.30199 8.90447 5.00311 9.20238 5.00293 9.57031V13.5781C5.00311 13.9461 5.30199 14.2449 5.66992 14.2451H10.3271C10.6952 14.2451 10.994 13.9462 10.9941 13.5781V11.2451H12.999C13.7349 11.2451 14.3323 10.648 14.333 9.91211L14.335 6.58008C14.3353 6.02729 13.8877 5.57832 13.335 5.57812H12.3311L12.3291 6.90723ZM9.33398 12.2363C9.71005 12.2363 10.001 12.5273 10.001 12.9033C10.0008 13.2792 9.70994 13.5693 9.33398 13.5693C8.95818 13.5692 8.66814 13.2791 8.66797 12.9033C8.66797 12.5274 8.95807 12.2365 9.33398 12.2363ZM6.24902 2.24609C5.88156 2.24669 5.58336 2.54459 5.58301 2.91211V5.91211H3.00293C2.26696 5.91246 1.6701 6.51008 1.66992 7.24609V10.2461C1.67045 10.9818 2.26718 11.5788 3.00293 11.5791H3.66992V9.57031C3.6701 8.466 4.56561 7.57049 5.66992 7.57031H10.3291C10.6967 7.57031 10.9952 7.27278 10.9961 6.90527L11 4.24512H11.0029V2.91211C11.0026 2.54422 10.7039 2.24609 10.3359 2.24609H6.24902ZM7.33398 3.56934C7.71005 3.56934 8.00098 3.86026 8.00098 4.23633C8.00098 4.6124 7.71005 4.90332 7.33398 4.90332C6.95807 4.90315 6.66797 4.61229 6.66797 4.23633C6.66797 3.86037 6.95807 3.5695 7.33398 3.56934Z"/></svg>;
}

const IconPythonOutline = React.forwardRef(IconPythonOutlineComponent);
export default IconPythonOutline;
