Files
talk/client/coral-framework/notification/Notification.js
T
2016-11-01 13:50:49 -07:00

20 lines
407 B
JavaScript

import React from 'react'
const Notification = (props) => {
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