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

function IconNotificationOffComponent(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-notification-off${loadingKls} ${className}`} width={width} height={height} viewBox="0 0 48 48" fill={useCurrentColor ? 'currentColor' : '#000'} xmlns="http://www.w3.org/2000/svg" {...rest} ref={ref}><path fillRule="evenodd" clipRule="evenodd" d="M5.535 2.707l39.598 39.598a1 1 0 010 1.414l-1.414 1.414a1 1 0 01-1.414 0L2.707 5.535a1 1 0 010-1.414l1.414-1.414a1 1 0 011.414 0zM29 40a1 1 0 011 1v2a1 1 0 01-1 1H19a1 1 0 01-1-1v-2a1 1 0 011-1h10zM8.918 15.989l3.276 3.276A13.123 13.123 0 0012 21.522V33h13.929l4 4H4.999a1 1 0 01-1-1v-1.976a1 1 0 01.884-.993l.14-.007L8 33.095V21.516c0-1.939.323-3.8.918-5.527zM27 3a1 1 0 011 1v1.52c6.901 1.834 12 8.3 12 15.996V32.93l-4-4v-7.407C36 14.606 30.627 9 24 9c-2.251 0-4.358.647-6.158 1.772l-2.884-2.884A15.693 15.693 0 0120 5.52V4a1 1 0 011-1h6z"/></svg>;
}

const IconNotificationOff = React.forwardRef(IconNotificationOffComponent);
export default IconNotificationOff;
