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

export type DashboardIconProps = 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 DashboardIcon = ({ title, size, color, ...props }: DashboardIconProps) => {
  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="M11.25 12.79V20H4.04v-7.21zm5.875-.04v2.875H20v1.5h-2.875V20h-1.5v-2.875H12.75v-1.5h2.875V12.75zM5.54 18.5h4.21v-4.21H5.54zM11.21 4v7.21H4V4zm8.75 0v7.21h-7.21V4zm-5.71 5.71h4.21V5.5h-4.21zm-8.75 0h4.21V5.5H5.5z" /></svg>
  );
};