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

export type NotificationIconProps = 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 NotificationIcon = ({ title, size, color, ...props }: NotificationIconProps) => {
  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="M15.746 10.13a3.744 3.744 0 0 0-7.487 0v3.994a3.23 3.23 0 0 1-.511 1.747h8.509a3.23 3.23 0 0 1-.51-1.747V10.13Zm1.5 3.994c0 .964.783 1.747 1.746 1.747v1.5H5.012v-1.5c.964 0 1.747-.783 1.747-1.747V10.13a5.244 5.244 0 0 1 10.487 0z" /><path d="M13.376 17.744a1.372 1.372 0 1 1-2.162-1.123h1.578c.354.25.584.659.584 1.123M12.002 5.886a1 1 0 0 1-.998-.998c0-.55.45-.999.998-.999.55 0 .999.45.999.999 0 .55-.45.998-.999.998" /></svg>
  );
};