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

function IconBasicEditionComponent(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 || 'hiagent';
    const loadingKls = spin ? ` ${prefix}-icon-loading` : '';
    return <svg className={`${prefix}-icon ${prefix}-icon-basic-edition${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 16 16" {...rest} ref={ref}><g clipPath="url(#svg_9e357d5219__svg_890e37079b__a)"><path fillRule="evenodd" d="M7.256 1.425 1.76 4.565a.5.5 0 0 0 0 .87l5.496 3.14a1.5 1.5 0 0 0 1.488 0l5.496-3.14a.5.5 0 0 0 0-.87l-5.496-3.14a1.5 1.5 0 0 0-1.488 0ZM1.93 7.295l.047.022L8 10.487l6.023-3.17a.667.667 0 1 1 .621 1.18l-6.33 3.332a.625.625 0 0 1-.038.019l-.034.014-.059.02-.026.007-.045.009-.057.007-.043.002h-.036l-.062-.005-.037-.006-.048-.01-.046-.015-.048-.019-.048-.023-6.33-3.332a.667.667 0 0 1 .573-1.202Zm5.757 7.534-6.33-3.332a.667.667 0 0 1 .573-1.202l.047.022L8 13.487l6.023-3.17a.667.667 0 1 1 .621 1.18l-6.33 3.332a.625.625 0 0 1-.038.019l-.034.014-.059.02-.026.007-.045.009-.057.007-.043.002h-.036l-.062-.005-.037-.006-.048-.01-.046-.015-.048-.019-.048-.023Z" clipRule="evenodd"/></g><defs><clipPath id="svg_9e357d5219__svg_890e37079b__a"><path d="M0 0h16v16H0z"/></clipPath></defs></svg>;
}

const IconBasicEdition = React.forwardRef(IconBasicEditionComponent);
export default IconBasicEdition;
