1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-04 23:14:56 +01:00
metamask-extension/ui/components/app/modal/modal-content/modal-content.component.js
2021-10-21 11:11:31 -05:00

23 lines
560 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> : null}
{description && (
<div className="modal-content__description">{description}</div>
)}
</div>
);
}
}