2020-01-23 21:55:18 -05:00
|
|
|
import React from 'react';
|
2021-05-31 16:46:41 +02:00
|
|
|
|
2020-01-23 21:55:18 -05:00
|
|
|
import Notification from './notification';
|
|
|
|
|
2021-02-08 20:01:21 +02:00
|
|
|
function Notifications({ notifications }) {
|
2020-06-04 20:51:07 +03:00
|
|
|
return notifications.map((node, i) => (
|
|
|
|
<Notification key={i} url={node.url} loud={node.loud}>
|
|
|
|
{node.message}
|
|
|
|
</Notification>
|
|
|
|
));
|
2021-02-08 20:01:21 +02:00
|
|
|
}
|
2020-01-23 21:55:18 -05:00
|
|
|
|
|
|
|
export default Notifications;
|