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

export type CalendarAddIconProps = 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 CalendarAddIcon = ({ title, size, color, ...props }: CalendarAddIconProps) => {
  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.498 4.512V3.016h1.5v1.496h5.984V3.016h1.5v1.496h4.509v7.49h-1.5v-1.247H4.515v6.99c0 .963.782 1.745 1.746 1.745h5.742v1.5H6.26a3.247 3.247 0 0 1-3.246-3.246V4.512h4.483Zm0 1.5H4.515v3.243H19.49V6.012h-3.009V7.51h-1.5V6.012H8.998V7.51h-1.5zm8.997 10.483V13.5h1.5v2.995h2.994v1.5h-2.994v2.994h-1.5v-2.994H13.5v-1.5z" clipRule="evenodd" /></svg>
  );
};