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

export const IconGuide24 = 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="M7.9 3c1.7 0 2.958.504 3.777 1.438a4 4 0 0 1 .323.427 4 4 0 0 1 .323-.427C13.142 3.504 14.4 3 16.1 3h5.15c.966 0 1.75.784 1.75 1.75v12.5A1.75 1.75 0 0 1 21.25 19h-5.175c-2.342 0-3.325 1.19-3.325 2.25a.75.75 0 0 1-1.5 0c0-1.06-.983-2.25-3.325-2.25H2.75A1.75 1.75 0 0 1 1 17.25V4.75C1 3.784 1.784 3 2.75 3zM2.75 4.5a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25h5.175c1.329 0 2.48.345 3.325.942V7.75c0-.99-.228-1.783-.701-2.323C10.092 4.906 9.3 4.5 7.9 4.5zm13.35 0c-1.4 0-2.192.406-2.649.927-.473.54-.701 1.334-.701 2.323v10.692c.845-.597 1.996-.942 3.325-.942h5.175a.25.25 0 0 0 .25-.25V4.75a.25.25 0 0 0-.25-.25z"
                />
            </svg>
        );
    }
);
