import React from 'react'
import ProfileAvatar from '../profile/JKProfileAvatar'
import TimeAgo from '../common/JKTimeAgo';

const JKGenericNotification = (notification) => {
  
  const {formatted_msg, created_at} = notification;

  return (
    <>
    <div className="notification-avatar mr-3">
      <ProfileAvatar  />
    </div> 
    <div className="notification-body">
      <p className="mb-1">{formatted_msg}</p>
      <span className="notification-time">
        <TimeAgo date={created_at} />
      </span>
    </div>
    </>
  )
}

export default JKGenericNotification
