import { forwardRef, useMemo } from 'react';
import { IconProps } from './types';

export const IconBell16 = forwardRef<SVGSVGElement, IconProps>(
    ({ color = 'currentColor', title, ...props }, svgRef) => {
        const titleId = useMemo(
            () =>
                title
                    ? 'title-' + Math.random().toString(36).substr(2, 9)
                    : undefined,
            [title]
        );
        return (
            <svg
                xmlns="http://www.w3.org/2000/svg"
                width={16}
                height={16}
                fill="none"
                viewBox="0 0 16 16"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    d="M9.103 12.872a.75.75 0 0 1 1.295.756A2.77 2.77 0 0 1 8 15a2.77 2.77 0 0 1-2.397-1.372.75.75 0 0 1 1.294-.756c.22.375.63.628 1.103.628s.883-.253 1.103-.628M8 1c3.093 0 5 2.666 5 5.405V8.78c0 1.334.788 1.72 1.25 1.72a.75.75 0 0 1 0 1.5H1.75a.75.75 0 0 1 0-1.5c.462 0 1.25-.386 1.25-1.72V6.405C3 3.665 4.907 1 8 1m0 1.5c-2.062 0-3.5 1.776-3.5 3.905V8.78c0 .677-.145 1.252-.387 1.72h7.774c-.242-.468-.387-1.043-.387-1.72V6.405C11.5 4.276 10.062 2.5 8 2.5"
                />
            </svg>
        );
    }
);
