insomnia/app/components/base/PromptModal.js

23 lines
566 B
JavaScript
Raw Normal View History

2016-04-07 17:06:04 +00:00
import React, {Component, PropTypes} from 'react';
import {Modal, ModalHeader, ModalBody, ModalFooter} from './Modal'
class PromptModal extends Component {
render () {
return (
<Modal onClose={this.props.onClose}>
<ModalHeader>{this.props.header}</ModalHeader>
<ModalBody><input type="text"/></ModalBody>
<ModalFooter>Footer</ModalFooter>
</Modal>
)
}
}
PromptModal.propTypes = {
onSubmit: PropTypes.func.isRequired,
header: PropTypes.string.isRequired,
onClose: PropTypes.func
};
export default PromptModal;