import React, { ReactNode } from 'react' import './NotificationItemImage.css' export interface NotificationItemImageProps { backgroundColor?: string image: string | ReactNode icon?: ReactNode } /** * @deprecated Should start using the same component migrated to UI2. */ export default function NotificationItemImage({ image, backgroundColor, icon }: NotificationItemImageProps) { return (
{typeof image === 'string' ? (
Notification Image
) : ( image )} {icon && {icon}}
) }