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

export type PrintIconProps = 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 PrintIcon = ({ title, size, color, ...props }: PrintIconProps) => {
  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 fillRule="evenodd" d="M7.508 3.014h8.99v3.798a5.245 5.245 0 0 1 4.493 5.19v4.495h-4.494v4.493H7.508v-4.493H3.015v-4.495a5.245 5.245 0 0 1 4.493-5.19zm1.5 3.745h5.99V4.514h-5.99V6.76Zm-1.5 8.238V12.75h8.99v2.247h2.993v-2.995a3.744 3.744 0 0 0-3.744-3.743H8.258a3.744 3.744 0 0 0-3.743 3.743v2.995zm1.5-.747v5.24h5.99v-5.24z" clipRule="evenodd" /></svg>
  );
};