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

export const IconCpu24 = 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.75 0a.75.75 0 0 1 .75.75V3h2.75A2.75 2.75 0 0 1 21 5.75V8.5h2.25a.75.75 0 0 1 0 1.5H21v3h2.25a.75.75 0 0 1 0 1.5H21v3.75A2.75 2.75 0 0 1 18.25 21H15.5v2.25a.75.75 0 0 1-1.5 0V21h-4v2.25a.75.75 0 0 1-1.5 0V21H5.75A2.75 2.75 0 0 1 3 18.25V14.5H.75a.75.75 0 0 1 0-1.5H3v-3H.75a.75.75 0 0 1 0-1.5H3V5.75A2.75 2.75 0 0 1 5.75 3H8.5V.75a.75.75 0 0 1 1.5 0V3h4V.75a.75.75 0 0 1 .75-.75m-9 4.5c-.69 0-1.25.56-1.25 1.25v12.5c0 .69.56 1.25 1.25 1.25h12.5c.69 0 1.25-.56 1.25-1.25V5.75c0-.69-.56-1.25-1.25-1.25zm8.5 3.5c.966 0 1.75.784 1.75 1.75v4.5A1.75 1.75 0 0 1 14.25 16h-4.5A1.75 1.75 0 0 1 8 14.25v-4.5C8 8.784 8.784 8 9.75 8zm-4.5 1.5a.25.25 0 0 0-.25.25v4.5c0 .138.112.25.25.25h4.5a.25.25 0 0 0 .25-.25v-4.5a.25.25 0 0 0-.25-.25z"
                />
            </svg>
        );
    }
);
