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

export const IconHelp24 = 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={24}
                height={24}
                fill="none"
                viewBox="0 0 24 24"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    d="M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 1.5a9.5 9.5 0 1 0 0 19 9.5 9.5 0 0 0 0-19m.01 13.5a1 1 0 0 1 0 2H12a1 1 0 1 1 0-2zM9.842 6.54a4.2 4.2 0 0 1 2.75-.483 4.13 4.13 0 0 1 2.436 1.342c.627.715.973 1.625.972 2.569 0 .636-.128 1.169-.37 1.62-.24.449-.569.77-.9 1.021-.263.2-.554.373-.802.519l-.145.085c-.294.176-.526.328-.712.507a1.14 1.14 0 0 0-.298.441.6.6 0 0 0-.028.108v.006a.75.75 0 0 1-1.5-.025c0-.198.046-.394.11-.58a2.6 2.6 0 0 1 .677-1.031c.317-.305.675-.53.98-.712l.176-.106c.245-.145.448-.265.637-.408.218-.165.375-.331.484-.533.107-.2.191-.482.191-.913a2.4 2.4 0 0 0-.6-1.58 2.63 2.63 0 0 0-1.551-.85c-.612-.102-1.24.01-1.77.309s-.926.765-1.125 1.308a.75.75 0 0 1-1.408-.515A4 4 0 0 1 9.842 6.54"
                />
            </svg>
        );
    }
);
