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

export type CalendarStartDateIconProps = 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 CalendarStartDateIcon = ({ title, size, color, ...props }: CalendarStartDateIconProps) => {
  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.509v13.232a3.247 3.247 0 0 1-3.247 3.247h-2.746v-1.5h2.746c.964 0 1.747-.783 1.747-1.747v-6.989H4.515v4.493h-1.5V4.512zm0 1.5H4.515v3.243H19.49V6.012h-3.009V7.51h-1.5V6.012H8.998V7.51h-1.5zm2.539 7.957 3.526 3.525-3.526 3.526-1.061-1.06 1.715-1.716H3.016v-1.5h7.675L8.976 15.03l1.06-1.06Z" clipRule="evenodd" /></svg>
  );
};