import {AvatarProps} from '@components/_HuGo/Avatar';

export interface InAppNotificationBody {
  id: string;
  /**
   * This is used to identify a notification and do any update to it
   */
  collapsedId?: string;
  title: string;
  subtitle?: Nullable<string>;
  avatar?: Pick<AvatarProps, 'Icon' | 'url' | 'name' | 'withAuthHeader'>;
  body: string;
  data?: Record<string, unknown>;
  /**
   * Epoch ms set when a collapsed notification is updated in-place.
   * The InAppNotification component watches this to reset the auto-hide timer.
   */
  updatedAt?: number;
}
