mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-12 20:57:12 +01:00
33 lines
680 B
JavaScript
33 lines
680 B
JavaScript
import React, { PureComponent } from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
export default class ModalContent extends PureComponent {
|
|
static propTypes = {
|
|
title: PropTypes.string,
|
|
description: PropTypes.string,
|
|
}
|
|
|
|
render () {
|
|
const { title, description } = this.props
|
|
|
|
return (
|
|
<div className="modal-content">
|
|
{
|
|
title && (
|
|
<div className="modal-content__title">
|
|
{ title }
|
|
</div>
|
|
)
|
|
}
|
|
{
|
|
description && (
|
|
<div className="modal-content__description">
|
|
{ description }
|
|
</div>
|
|
)
|
|
}
|
|
</div>
|
|
)
|
|
}
|
|
}
|