import { Entity, MegalodonInterface } from 'megalodon' import Status from '../status/Status' import Reaction from './Reaction' import Follow from './Follow' import { Account } from '@/db' type Props = { notification: Entity.Notification account: Account client: MegalodonInterface onRefresh: (status: Entity.Status) => void openMedia: (media: Array, index: number) => void filters: Array } export default function Notification(props: Props) { switch (props.notification.type) { case 'mention': { if (props.notification.status) { return ( ) } else { return null } } case 'favourite': case 'reblog': case 'poll_expired': case 'poll_vote': case 'quote': case 'status': case 'update': case 'emoji_reaction': case 'reaction': { if (props.notification.status) { return ( ) } else { return null } } case 'follow': case 'follow_request': return default: { return null } } }