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

export const IconBulb16 = 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 14.5A.75.75 0 0 1 9 16H7a.75.75 0 0 1 0-1.5zm-1-11A4.5 4.5 0 0 1 12.5 8c0 1.605-1.008 2.592-1.845 3.411l-.067.066a.3.3 0 0 0-.088.213c0 1-.81 1.81-1.81 1.81H7.324A1.827 1.827 0 0 1 5.5 11.675a.3.3 0 0 0-.081-.207l-.2-.203C4.426 10.465 3.5 9.53 3.5 8A4.5 4.5 0 0 1 8 3.5M8 5a3 3 0 0 0-3 3c0 .894.492 1.397 1.377 2.302l.114.117c.332.34.508.794.508 1.255 0 .18.146.326.326.326H8.69A.31.31 0 0 0 9 11.69c0-.48.191-.945.538-1.285C10.46 9.501 11 8.927 11 8a3 3 0 0 0-3-3M2.25 6.75a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1 0-1.5zm12.5 0a.75.75 0 0 1 0 1.5h-1a.75.75 0 0 1 0-1.5zM2.72 2.22a.75.75 0 0 1 1.06 0l.707.707a.75.75 0 1 1-1.06 1.06L2.72 3.28a.75.75 0 0 1 0-1.06m9.5 0a.75.75 0 1 1 1.06 1.06l-.707.707a.75.75 0 1 1-1.06-1.06zM8 0a.75.75 0 0 1 .75.75v1a.75.75 0 0 1-1.5 0v-1A.75.75 0 0 1 8 0"
                />
            </svg>
        );
    }
);
