1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-02 14:15:06 +01:00
metamask-extension/ui/components/app/modal/modal-content/modal-content.component.js

23 lines
560 B
JavaScript
Raw Normal View History

import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
2018-09-17 18:56:59 +02:00
export default class ModalContent extends PureComponent {
static propTypes = {
title: PropTypes.string,
description: PropTypes.string,
};
2018-09-17 18:56:59 +02:00
2020-11-03 00:41:28 +01:00
render() {
const { title, description } = this.props;
2018-09-17 18:56:59 +02:00
return (
<div className="modal-content">
{title ? <div className="modal-content__title">{title}</div> : null}
2020-11-03 00:41:28 +01:00
{description && (
<div className="modal-content__description">{description}</div>
)}
2018-09-17 18:56:59 +02:00
</div>
);
2018-09-17 18:56:59 +02:00
}
}