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

export const IconGridAlt16 = 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={16}
                height={16}
                fill="none"
                viewBox="0 0 16 16"
                aria-hidden={!title}
                ref={svgRef}
                aria-labelledby={titleId}
                {...props}
            >
                {title ? <title id={titleId}>{title}</title> : null}
                <path
                    fill={color}
                    d="M3.25 12a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75H.75a.75.75 0 0 1-.75-.75v-2.5A.75.75 0 0 1 .75 12zm6 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75v-2.5a.75.75 0 0 1 .75-.75zm6 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75v-2.5a.75.75 0 0 1 .75-.75zM1.5 14.5h1v-1h-1zm6 0h1v-1h-1zm6 0h1v-1h-1zM3.25 6a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75H.75A.75.75 0 0 1 0 9.25v-2.5A.75.75 0 0 1 .75 6zm6 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-2.5A.75.75 0 0 1 6 9.25v-2.5A.75.75 0 0 1 6.75 6zm6 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75v-2.5a.75.75 0 0 1 .75-.75zM1.5 8.5h1v-1h-1zm6 0h1v-1h-1zm6 0h1v-1h-1zM3.25 0A.75.75 0 0 1 4 .75v2.5a.75.75 0 0 1-.75.75H.75A.75.75 0 0 1 0 3.25V.75A.75.75 0 0 1 .75 0zm6 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-2.5A.75.75 0 0 1 6 3.25V.75A.75.75 0 0 1 6.75 0zm6 0a.75.75 0 0 1 .75.75v2.5a.75.75 0 0 1-.75.75h-2.5a.75.75 0 0 1-.75-.75V.75a.75.75 0 0 1 .75-.75zM1.5 2.5h1v-1h-1zm6 0h1v-1h-1zm6 0h1v-1h-1z"
                />
            </svg>
        );
    }
);
