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

export type NewsArticleIconProps = 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 NewsArticleIcon = ({ title, size, color, ...props }: NewsArticleIconProps) => {
  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="M13.499 17.994H5.513v.748c0 .964.782 1.746 1.746 1.746h6.75a3.23 3.23 0 0 1-.51-1.746zm3.496-4.255v1.5h-7.49v-1.5zm0-2.742v1.5h-7.49v-1.5zm.01-6.24v4.995h-7.5V4.757zm-6 3.495h4.5V6.257h-4.5zm3.994 10.49a1.747 1.747 0 0 0 3.492 0V3.516H8.01v12.978h6.989L15 18.742Zm4.992 0a3.247 3.247 0 0 1-3.246 3.246H7.26a3.247 3.247 0 0 1-3.246-3.246v-2.248H6.51V2.016h13.48v16.726Z" /></svg>
  );
};