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

function IconAndroidComponent(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 || 'hkgai';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-android${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 47 48" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M29.4705 12.5007C29.4705 13.2585 30.0975 13.8679 30.8565 13.8679C31.6155 13.8679 32.2425 13.2585 32.2425 12.5007C32.2425 11.743 31.6155 11.15 30.8565 11.15C30.0975 11.15 29.4705 11.743 29.4705 12.5007ZM14.2905 12.5007C14.2905 13.2585 14.9175 13.8679 15.6765 13.8679C16.4355 13.8679 17.046 13.2585 17.046 12.5007C17.046 11.743 16.4355 11.15 15.6765 11.15C14.9175 11.15 14.2905 11.743 14.2905 12.5007ZM34.107 0.871368L31.3515 5.61536C36.0705 8.18502 39.288 12.9455 39.75 18.5625H6.75C7.2285 12.929 10.4625 8.16855 15.165 5.59889L12.426 0.854896C12.2775 0.574868 12.36 0.228953 12.6405 0.080703C12.7049 0.0414415 12.7766 0.0157877 12.8513 0.00533073C12.926 -0.00512623 13.0021 -0.000163715 13.0748 0.0199104C13.1475 0.0399844 13.2153 0.0747427 13.2739 0.122034C13.3326 0.169325 13.381 0.228141 13.416 0.294841L16.2045 5.08825C18.3 4.13286 20.7255 3.58928 23.25 3.58928C25.6919 3.57319 28.1079 4.09042 30.3285 5.10472L33.15 0.311314C33.2655 0.0312862 33.612 -0.0675471 33.8925 0.0971748C34.1565 0.245425 34.2555 0.591341 34.107 0.871368ZM39.75 37.25V20.25H6.75V37.25C6.75 39.4591 8.54086 41.25 10.75 41.25H13.5V45.375C13.5 46.8247 14.6753 48 16.125 48C17.5747 48 18.75 46.8247 18.75 45.375V41.25H27V45.375C27 46.8247 28.1753 48 29.625 48C31.0747 48 32.25 46.8247 32.25 45.375V41.25H35.75C37.9591 41.25 39.75 39.4591 39.75 37.25ZM41.25 22.875C41.25 21.4253 42.4253 20.25 43.875 20.25C45.3247 20.25 46.5 21.4253 46.5 22.875V35.625C46.5 37.0747 45.3247 38.25 43.875 38.25C42.4253 38.25 41.25 37.0747 41.25 35.625V22.875ZM2.625 20.25C1.17525 20.25 0 21.4253 0 22.875V35.625C0 37.0747 1.17525 38.25 2.625 38.25C4.07475 38.25 5.25 37.0747 5.25 35.625V22.875C5.25 21.4253 4.07475 20.25 2.625 20.25Z"/></svg>;
}

const IconAndroid = React.forwardRef(IconAndroidComponent);
export default IconAndroid;
