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

export const IconCommand24 = 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="M18.25 2a3.75 3.75 0 1 1 0 7.5H16v5h2.25a3.75 3.75 0 1 1-3.75 3.75V16h-5v2.25a3.75 3.75 0 1 1-3.75-3.75H8v-5H5.75A3.75 3.75 0 1 1 9.5 5.75V8h5V5.75A3.75 3.75 0 0 1 18.25 2M5.75 16A2.25 2.25 0 1 0 8 18.25V16zM16 18.25A2.25 2.25 0 1 0 18.25 16H16zM9.5 14.5h5v-5h-5zm-3.75-11a2.25 2.25 0 0 0 0 4.5H8V5.75A2.25 2.25 0 0 0 5.75 3.5m12.5 0A2.25 2.25 0 0 0 16 5.75V8h2.25a2.25 2.25 0 0 0 0-4.5"
                />
            </svg>
        );
    }
);
