mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 03:20:23 +01:00
31 lines
612 B
JavaScript
31 lines
612 B
JavaScript
|
import React from 'react'
|
||
|
import PropTypes from 'prop-types'
|
||
|
import Button from '../../button'
|
||
|
|
||
|
const Notification = (props, context) => {
|
||
|
return (
|
||
|
<div className="modal-container">
|
||
|
{ props.children }
|
||
|
<div className="modal-container__footer">
|
||
|
<Button
|
||
|
type="primary"
|
||
|
onClick={() => props.onHide()}
|
||
|
>
|
||
|
{ context.t('ok') }
|
||
|
</Button>
|
||
|
</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
Notification.propTypes = {
|
||
|
onHide: PropTypes.func.isRequired,
|
||
|
children: PropTypes.element,
|
||
|
}
|
||
|
|
||
|
Notification.contextTypes = {
|
||
|
t: PropTypes.func,
|
||
|
}
|
||
|
|
||
|
export default Notification
|