1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-26 21:35:03 +02:00
metamask-extension/ui/app/components/modal/modal-content/modal-content.component.js

25 lines
544 B
JavaScript
Raw Normal View History

2018-09-17 18:56:59 +02:00
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">
<div className="modal-content__title">
{ title }
</div>
<div className="modal-content__description">
{ description }
</div>
</div>
)
}
}