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

function IconOverviewKeyComponent(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-overview_key${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 24 24" {...rest} ref={ref}><path fillRule="evenodd" d="M15 1.5a7.5 7.5 0 1 1-4.617 13.41l-2.212 2.637 1.563 1.313a.5.5 0 0 1 .061.704l-.643.765a.5.5 0 0 1-.705.06L6.885 19.08l-2.532 3.015a.5.5 0 0 1-.705.062l-.765-.642a.5.5 0 0 1-.062-.706l6.106-7.278a.504.504 0 0 1 .055-.055A7.5 7.5 0 0 1 15 1.5Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z" clipRule="evenodd"/></svg>;
}

const IconOverviewKey = React.forwardRef(IconOverviewKeyComponent);
export default IconOverviewKey;
