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

function IconVideoPlayComponent(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 || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-video-play${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : 'none'} viewBox="0 0 20 20" {...rest} ref={ref}><path fill={useCurrentColor ? 'currentColor' : '#fff'} fillRule="evenodd" d="m4.833 2.128 11.2 7.2a.799.799 0 0 1 0 1.345l-11.2 7.199a.8.8 0 0 1-1.233-.673V2.8a.8.8 0 0 1 1.233-.673Z" clipRule="evenodd"/></svg>;
}

const IconVideoPlay = React.forwardRef(IconVideoPlayComponent);
export default IconVideoPlay;
