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

export const IconTools24 = 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="M14.25 2A2.75 2.75 0 0 1 17 4.75V6h.422c.73 0 1.429.29 1.944.806l2.828 2.828A2.75 2.75 0 0 1 23 11.578v7.672A2.75 2.75 0 0 1 20.25 22H3.75A2.75 2.75 0 0 1 1 19.25v-7.672c0-.73.29-1.429.806-1.944l2.828-2.828A2.75 2.75 0 0 1 6.578 6H7V4.75A2.75 2.75 0 0 1 9.75 2zM2.5 19.25c0 .69.56 1.25 1.25 1.25h16.5c.69 0 1.25-.56 1.25-1.25V14.5H15v1.25c0 .69-.56 1.25-1.25 1.25h-3.5C9.56 17 9 16.44 9 15.75V14.5H2.5zm8-3.75h3v-3h-3zm-3.922-8c-.331 0-.65.132-.884.366l-2.828 2.828a1.25 1.25 0 0 0-.366.884V13H9v-.75c0-.69.56-1.25 1.25-1.25h3.5c.69 0 1.25.56 1.25 1.25V13h6.5v-1.422c0-.331-.132-.65-.366-.884l-2.828-2.828a1.25 1.25 0 0 0-.884-.366zm3.172-4c-.69 0-1.25.56-1.25 1.25V6h7V4.75c0-.69-.56-1.25-1.25-1.25z"
                />
            </svg>
        );
    }
);
