import { useId, type SVGProps } from 'react';

export type GridIconProps = SVGProps<SVGSVGElement> & {
  /** Accessibility title for the icon, set aria-hidden="true" if the icon is purely decorative. */
  title?: string;
  /**
   * The size of the icon.
   * It sets the font-size, possible as the width and height is `1em`. If not set, the icon will inherit the font size of its parent.
   */
  size?: '2xl' | 'xl' | 'large' | 'medium' | 'small';
  /**
   * The color of the icon.
   * @default 'inherit'
   */
  color?: 'inherit' | 'primary' | 'gray' | 'black' | 'white';
};

export const GridIcon = ({ title, size, color, ...props }: GridIconProps) => {
  const titleId = useId();
  return (
    <svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" focusable='false' role='img' width='1em' height='1em'  aria-labelledby={title ? titleId : undefined} data-size={size} data-color={color} {...props}>{title ? <title id={titleId}>{title}</title> : null}<path d="M12.002 12.752a.749.749 0 1 0 0-1.498.749.749 0 0 0 0 1.498m5.742 0a.749.749 0 1 0 0-1.498.749.749 0 0 0 0 1.498m-11.484 0a.749.749 0 1 0 0-1.498.749.749 0 0 0 0 1.498" /><path fillRule="evenodd" d="M6.261 12.003v-.001H6.26v.001zm-1.5 0a1.499 1.499 0 1 1 2.998 0 1.499 1.499 0 0 1-2.997 0Zm7.24 0q0-.0015 0 0m-1.498 0a1.499 1.499 0 1 1 2.998 0 1.499 1.499 0 0 1-2.998 0M17.744 12v.002m0-.001v.001m-1.499 0a1.499 1.499 0 1 1 2.998 0 1.499 1.499 0 0 1-2.998 0" clipRule="evenodd" /><path d="M12.002 7.51a.749.749 0 1 0 0-1.499.749.749 0 0 0 0 1.498Zm5.742 0a.749.749 0 1 0 0-1.499.749.749 0 0 0 0 1.498Zm-11.484 0a.749.749 0 1 0 0-1.499.749.749 0 0 0 0 1.498Z" /><path fillRule="evenodd" d="M6.261 6.76H6.26zm-1.5 0a1.499 1.499 0 1 1 2.999 0 1.499 1.499 0 0 1-2.998 0Zm7.24 0s0 .001 0 0m-1.498 0a1.499 1.499 0 1 1 2.998 0 1.499 1.499 0 0 1-2.998 0m7.241-.001v.002m0-.002v.002m-1.499 0a1.499 1.499 0 1 1 2.998 0 1.499 1.499 0 0 1-2.998 0" clipRule="evenodd" /><path d="M12.002 17.994a.749.749 0 1 0 0-1.497.749.749 0 0 0 0 1.497m5.742 0a.749.749 0 1 0 0-1.497.749.749 0 0 0 0 1.497m-11.484 0a.749.749 0 1 0 0-1.497.749.749 0 0 0 0 1.497" /><path fillRule="evenodd" d="M6.261 17.246v-.001H6.26v.001zm-1.5 0a1.499 1.499 0 1 1 2.999 0 1.499 1.499 0 0 1-2.998 0Zm7.24-.001v.001m-1.498 0a1.499 1.499 0 1 1 2.998 0 1.499 1.499 0 0 1-2.998 0m7.241-.002v.002m0-.001v.001m-1.499 0a1.499 1.499 0 1 1 2.998 0 1.499 1.499 0 0 1-2.998 0" clipRule="evenodd" /></svg>
  );
};