1 | import React from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import { DropdownMenu } from 'reactstrap';
|
4 | import FeedbackForm from './FeedbackForm';
|
5 |
|
6 | const Feedback = ({ prompt, toggle, onFeedbackSent, ...formProps }) => (
|
7 | <DropdownMenu right style={{ width: '400px', padding: 0 }}>
|
8 | <FeedbackForm
|
9 | onFeedbackSent={onFeedbackSent}
|
10 | prompt={prompt}
|
11 | onClose={toggle}
|
12 | {...formProps}
|
13 | />
|
14 | </DropdownMenu>
|
15 | );
|
16 |
|
17 | Feedback.propTypes = {
|
18 | prompt: PropTypes.string,
|
19 | toggle: PropTypes.func,
|
20 | onFeedbackSent: PropTypes.func,
|
21 | };
|
22 |
|
23 | export default Feedback;
|