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

export type CalendarDeadlineIconProps = 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 CalendarDeadlineIcon = ({ title, size, color, ...props }: CalendarDeadlineIconProps) => {
  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-5.742v-1.5h5.742c.964 0 1.747-.783 1.747-1.747v-6.989H4.514v1.247h-1.5v-7.49h4.483Zm0 1.5H4.515v3.243H19.49V6.012h-3.009V7.51h-1.5V6.012H8.998V7.51h-1.5z" clipRule="evenodd" /><path fillRule="evenodd" d="M7.6 13.5a3.1 3.1 0 1 0 0 6.199 3.1 3.1 0 0 0 0-6.199M3 16.6a4.6 4.6 0 1 1 9.199 0A4.6 4.6 0 0 1 3 16.6m3.85-.431v-1.317h1.5v1.317a.86.86 0 0 1 .085.206l1.443 1.447-1.062 1.06-1.443-1.448a.865.865 0 0 1-.524-1.265Z" clipRule="evenodd" /></svg>
  );
};