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

export type NoteIconProps = 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 NoteIcon = ({ title, size, color, ...props }: NoteIconProps) => {
  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="M8.015 3.755v1.5H5.5V18.79H12v-3.5a3.25 3.25 0 0 1 3.25-3.25h3.25V5.255h-2.487v-1.5H20v11.57l-4.982 4.757-.217.208H4V3.755zM13.5 18.79h.7l4.3-4.106V13.54h-3.25a1.75 1.75 0 0 0-1.75 1.75z" /><path d="M12 6.005c-.825 0-1.5-.675-1.5-1.5s.675-1.5 1.5-1.5 1.5.675 1.5 1.5-.675 1.5-1.5 1.5" /></svg>
  );
};