UNPKG

576 BJavaScriptView Raw
1import React from 'react';
2import PropTypes from 'prop-types';
3import { DropdownMenu } from 'reactstrap';
4import FeedbackForm from './FeedbackForm';
5
6const 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
17Feedback.propTypes = {
18 prompt: PropTypes.string,
19 toggle: PropTypes.func,
20 onFeedbackSent: PropTypes.func,
21};
22
23export default Feedback;