)
}
const actionIcon = (notification: Entity.Notification) => {
switch (notification.type) {
case 'favourite': {
return
}
case 'reblog':
case 'quote': {
return
}
case 'poll_expired':
case 'poll_vote': {
return
}
case 'status': {
return
}
case 'update': {
return
}
case 'reaction':
case 'emoji_reaction': {
if (notification.reaction) {
if (notification.reaction.url) {
return (
)
} else {
return (
)
}
} else {
return null
}
}
default:
return null
}
}
const actionId = (notification: Entity.Notification) => {
switch (notification.type) {
case 'favourite':
return 'notification.favourite.body'
case 'reblog':
return 'notification.reblog.body'
case 'quote':
return 'notification.quote.body'
case 'poll_expired':
return 'notification.poll_expired.body'
case 'poll_vote':
return 'notification.poll.vote'
case 'status':
return 'notification.status.body'
case 'update':
return 'notification.update.body'
case 'reaction':
case 'emoji_reaction':
return 'notification.emoji_reaction.body'
default:
return ''
}
}