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

function IconPDFOutlineComponent(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-PDFOutline${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="M15.0288 9.70095C14.7066 9.31429 14.0459 9.1263 13.009 9.1263C12.4063 9.1263 11.576 9.14183 10.7415 9.26874C8.46241 7.5846 7.92824 5.7755 7.92824 5.7755C7.92824 5.7755 8.31749 4.77397 8.34219 3.13824C8.35781 2.10422 8.19791 1.33302 7.79003 1.00149C7.61629 0.860267 7.364 0.742188 7.11004 0.742188C6.91183 0.742188 6.72623 0.801022 6.57415 0.913498C5.38933 1.78969 6.68289 5.92024 6.71751 6.03028C6.15838 7.42098 5.45403 8.89432 4.72908 10.189C4.49354 10.6096 4.49354 10.6177 4.33532 10.8086C4.33532 10.8086 2.2613 11.863 1.28876 13.0319C0.739274 13.6925 0.721441 14.146 0.750613 14.4858C0.797629 14.8934 1.30453 15.2578 1.81483 15.2578C1.836 15.2578 1.85729 15.2572 1.87815 15.2559C2.39678 15.2235 2.97368 15.0772 3.61563 14.4548C4.08037 14.0042 4.60298 12.7805 5.27483 11.5831C7.20245 11.029 8.89883 10.6342 10.3205 10.4091C11.3631 10.9762 12.9142 11.6183 13.9701 11.6183C14.3242 11.6183 14.6092 11.5453 14.8169 11.4014C15.0654 11.2293 15.171 11.0148 15.2366 10.6177C15.3022 10.2206 15.2109 9.91942 15.0288 9.70095ZM12.7626 10.3225C13.7253 10.3225 14.2466 10.4966 14.5143 10.6427C14.5969 10.6877 14.657 10.7312 14.6996 10.7675C14.6241 10.8274 14.4757 10.9032 14.2075 10.9032C13.7627 10.9032 13.1789 10.71 12.4669 10.3278C12.5682 10.3243 12.6668 10.3225 12.7626 10.3225ZM7.23346 1.61727L7.23511 1.61315C7.38541 1.72662 7.45556 2.52343 7.44147 2.98545C7.42256 3.60547 7.41807 3.84505 7.34213 4.22597C7.13629 3.43183 7.12168 2.00437 7.23346 1.61727ZM7.28096 7.4194C7.75051 8.21213 8.34591 9.01492 9.01681 9.62795C7.70733 9.91568 6.62002 10.1797 5.83768 10.4604C6.67626 8.97171 7.2259 7.56694 7.28096 7.4194ZM1.99366 14.1361C2.11214 13.9565 2.43587 13.6084 3.25686 12.9353C2.81625 13.9756 2.32141 14.1361 1.8614 14.3868C1.89612 14.3044 1.9398 14.2178 1.99366 14.1361Z"/></svg>;
}

const IconPDFOutline = React.forwardRef(IconPDFOutlineComponent);
export default IconPDFOutline;
