You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
554 B
22 lines
554 B
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>
|
|
);
|
|
}
|
|
}
|
|
|