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

function IconOverviewCreationTimeComponent(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_creationTime${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 18 18" {...rest} ref={ref}><path fillRule="evenodd" d="M17 9A8 8 0 1 1 1 9a8 8 0 0 1 16 0Zm-3.998 1.073v-.889a.444.444 0 0 0-.445-.444h-3.28V5.443A.444.444 0 0 0 8.833 5h-.889a.444.444 0 0 0-.444.444v4.629a.44.44 0 0 0 .112.295l.037.037.041.033c.072.05.16.08.254.08h4.613a.444.444 0 0 0 .445-.445Z" clipRule="evenodd"/></svg>;
}

const IconOverviewCreationTime = React.forwardRef(IconOverviewCreationTimeComponent);
export default IconOverviewCreationTime;
