@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
25 lines (24 loc) • 747 B
TypeScript
import { ComponentProps } from 'react';
import { Nil } from '../../utils/misc';
type NotificationImageProps = Omit<ComponentProps<"img">, "src"> & {
src: Nil<string>;
};
/**
* Notification image component that either renders an image or a default info icon.
* Handles both custom notification images and a fallback icon when an image is not provided.
*
*
* @example
* ```ts
* // With image URL
* <NotificationImage src="/notification-image.jpg" alt="New message" />
* ```
*
* @example
* ```ts
* // Without image - shows a default icon
* <NotificationImage src={undefined} />
* ```
*/
export declare const NotificationImage: ({ alt, src, className, ...props }: NotificationImageProps) => import("react").JSX.Element;
export {};