2021-02-04 19:15:23 +01:00
|
|
|
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,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2018-09-17 18:56:59 +02:00
|
|
|
|
2020-11-03 00:41:28 +01:00
|
|
|
render() {
|
2021-02-04 19:15:23 +01:00
|
|
|
const { title, description } = this.props;
|
2018-09-17 18:56:59 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="modal-content">
|
2021-10-21 18:11:31 +02:00
|
|
|
{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>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
2018-09-17 18:56:59 +02:00
|
|
|
}
|
|
|
|
}
|