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

function IconCalendarClockComponent(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-calendar-clock${loadingKls} ${className}`} width={width} height={height} xmlns="http://www.w3.org/2000/svg" fill={useCurrentColor ? 'currentColor' : '#000'} viewBox="0 0 48 48" {...rest} ref={ref}><path d="M9 20h30v-9H9v9Zm34 4H9v15h17v4H8a3 3 0 0 1-3-3V10a3 3 0 0 1 3-3h32a3 3 0 0 1 3 3v14Z"/><path d="M36 5v8h-4V5h4ZM16 5v8h-4V5h4Z"/><path fillRule="evenodd" d="M36 44a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.5-9.75V29h-3v8.25H42v-3h-4.5Z" clipRule="evenodd"/></svg>;
}

const IconCalendarClock = React.forwardRef(IconCalendarClockComponent);
export default IconCalendarClock;
