{!expanded ? (
<>
{notifications.slice(0, numSummaryLines).map((notification) => {
return (
)
})}
{notifications.length - numSummaryLines > 0
? 'And ' +
(notifications.length - numSummaryLines) +
' more...'
: ''}
>
) : (
<>
{notifications.map((notification) => (
))}
>
)}