Files
talk/client/coral-framework/modules/notification/Notification.js
T
2017-01-03 08:41:28 -03:00

21 lines
462 B
JavaScript

import React from 'react';
const Notification = (props) => {
console.log('ACA EL PROBLEMA notification');
if (props.notification.text) {
setTimeout(() => {
props.clearNotification();
}, props.notifLength);
}
return <div>
{
props.notification.text &&
<dialog open id='coral-notif' className={`coral-notif-${ props.notification.type}`}>
{props.notification.text}
</dialog>
}
</div>;
};
export default Notification;