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

export const IconAlertOctagonFill16 = 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}
                    fillRule="evenodd"
                    d="M3.882.805A2.75 2.75 0 0 1 5.827 0h4.346c.73 0 1.429.29 1.945.805l3.076 3.077A2.75 2.75 0 0 1 16 5.827v4.346c0 .73-.29 1.429-.806 1.945l-3.076 3.076a2.75 2.75 0 0 1-1.945.806H5.827a2.75 2.75 0 0 1-1.945-.806L.805 12.119A2.75 2.75 0 0 1 0 10.173V5.827c0-.73.29-1.429.805-1.945zM7 11a1 1 0 0 1 1-1h.007a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1m1.75-6.25a.75.75 0 0 0-1.5 0v3.5a.75.75 0 0 0 1.5 0z"
                    clipRule="evenodd"
                />
            </svg>
        );
    }
);
