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.75 10.125a3.75 3.75 0 0 0-7.5 0v4a3.23 3.23 0 0 1-.513 1.75h8.526a3.23 3.23 0 0 1-.513-1.75zm1.5 4c0 .966.784 1.75 1.75 1.75v1.5H5v-1.5a1.75 1.75 0 0 0 1.75-1.75v-4a5.25 5.25 0 0 1 10.5 0z" /><path d="M12.625 17.75c0-.14-.046-.27-.126-.375h-.998a.624.624 0 1 0 1.124.375m1.5 0a2.124 2.124 0 1 1-3.347-1.738l.195-.137h2.054l.195.137c.545.384.903 1.018.903 1.738M12 5.875c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1" /></svg>
  );
};