diff options
Add Modal component
Diffstat (limited to 'ui/app/components/modal/modal-content/modal-content.component.js')
-rw-r--r-- | ui/app/components/modal/modal-content/modal-content.component.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ui/app/components/modal/modal-content/modal-content.component.js b/ui/app/components/modal/modal-content/modal-content.component.js new file mode 100644 index 000000000..8beb854e0 --- /dev/null +++ b/ui/app/components/modal/modal-content/modal-content.component.js @@ -0,0 +1,24 @@ +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> + ) + } +} |