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

function IconVideoSmallColorComponent(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-video_small_color${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><rect width="20" height="20" rx="5" fill={useCurrentColor ? 'currentColor' : '#D4ABE6'} fillOpacity=".2"/><path fillRule="evenodd" clipRule="evenodd" d="M7.4465 5.12482C6.82128 4.76385 6.03776 5.21548 6.03735 5.93727V14.0618C6.0374 14.7839 6.82114 15.2353 7.4465 14.8743L14.4816 10.812C15.1063 10.4508 15.1064 9.54818 14.4816 9.1871L7.4465 5.12482Z" fill={useCurrentColor ? 'currentColor' : '#D4ABE6'}/></svg>;
}

const IconVideoSmallColor = React.forwardRef(IconVideoSmallColorComponent);
export default IconVideoSmallColor;
