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

function IconPdfDefaultColorComponent(props: OriginIconProps, ref: ForwardedRef<SVGSVGElement>) {
    const { prefix: prefixFromContext } = useContext(Context);
    const { className = '', prefix: prefixFromProps, width = '1em', height = '1em', useCurrentColor = false, spin, ...rest } = props;

    const prefix = prefixFromProps || prefixFromContext || 'font';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-pdf_default_color${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path d="M21.8604 1.3335L28 7.47314V25.9038C28 27.5709 28.0002 28.4048 27.6758 29.0415C27.3904 29.6015 26.935 30.0569 26.375 30.3423C25.7383 30.6667 24.9044 30.6665 23.2373 30.6665H8.7627C7.09563 30.6665 6.26175 30.6667 5.625 30.3423C5.06503 30.0569 4.60956 29.6015 4.32422 29.0415C3.99982 28.4048 4 27.5709 4 25.9038V6.09619C4 4.42912 3.99978 3.59524 4.32422 2.9585C4.60959 2.39852 5.06502 1.94308 5.625 1.65771C6.26175 1.33328 7.09563 1.3335 8.7627 1.3335H21.8604Z" fill={useCurrentColor ? 'currentColor' : '#E47974'}/><path d="M24.2412 7.47314C23.408 7.47314 22.9912 7.47314 22.6729 7.31104C22.3929 7.16841 22.1652 6.94052 22.0225 6.66064C21.8602 6.34226 21.8604 5.92488 21.8604 5.09131L21.8604 1.3335L28 7.47314L24.2412 7.47314Z" fill={useCurrentColor ? 'currentColor' : '#fff'} fillOpacity=".5"/><path d="M22.1878 19.7055C21.9042 19.3651 21.3226 19.1997 20.4097 19.1997C19.8791 19.1997 19.1482 19.2133 18.4136 19.325C16.4072 17.8424 15.9369 16.2498 15.9369 16.2498C15.9369 16.2498 16.2796 15.3682 16.3014 13.9282C16.3151 13.0179 16.1743 12.339 15.8153 12.0471C15.6623 11.9228 15.4402 11.8188 15.2167 11.8188C15.0422 11.8188 14.8788 11.8706 14.7449 11.9697C13.7019 12.741 14.8406 16.3773 14.8711 16.4741C14.3789 17.6984 13.7588 18.9954 13.1206 20.1351C12.9133 20.5054 12.9133 20.5125 12.774 20.6806C12.774 20.6806 10.9482 21.6088 10.092 22.6379C9.60828 23.2194 9.59258 23.6186 9.61826 23.9178C9.65965 24.2766 10.1059 24.5974 10.5551 24.5974C10.5738 24.5974 10.5925 24.5969 10.6109 24.5957C11.0674 24.5672 11.5753 24.4384 12.1404 23.8905C12.5495 23.4938 13.0096 22.4166 13.6011 21.3625C15.298 20.8746 16.7914 20.5271 18.0429 20.329C18.9607 20.8281 20.3262 21.3934 21.2558 21.3934C21.5676 21.3934 21.8184 21.3292 22.0012 21.2025C22.2201 21.051 22.313 20.8622 22.3707 20.5125C22.4285 20.163 22.3481 19.8979 22.1878 19.7055ZM20.1928 20.2527C21.0403 20.2527 21.4992 20.406 21.7349 20.5345C21.8076 20.5742 21.8605 20.6125 21.898 20.6444C21.8316 20.6972 21.7009 20.7639 21.4648 20.7639C21.0732 20.7639 20.5593 20.5938 19.9325 20.2573C20.0216 20.2543 20.1084 20.2527 20.1928 20.2527ZM15.3253 12.5892C15.3257 12.588 15.3262 12.5868 15.3268 12.5856C15.4591 12.6855 15.5208 13.3869 15.5084 13.7937C15.4918 14.3395 15.4878 14.5504 15.421 14.8857C15.2398 14.1866 15.2269 12.93 15.3253 12.5892ZM15.3671 17.697C15.7805 18.3949 16.3046 19.1016 16.8953 19.6413C15.7425 19.8946 14.7853 20.127 14.0966 20.3741C14.8348 19.0636 15.3187 17.8269 15.3671 17.697ZM10.7125 23.61C10.8169 23.4518 11.1018 23.1454 11.8246 22.5528C11.4367 23.4687 11.0011 23.61 10.5961 23.8307C10.6267 23.7581 10.6651 23.6819 10.7125 23.61Z" fill={useCurrentColor ? 'currentColor' : '#fff'}/></svg>;
}

const IconPdfDefaultColor = React.forwardRef(IconPdfDefaultColorComponent);
export default IconPdfDefaultColor;
