UNPKG

@availity/feedback

Version:

Availity feedback with simley faces react component.

24 lines (20 loc) 576 B
import React from 'react'; import PropTypes from 'prop-types'; import { DropdownMenu } from 'reactstrap'; import FeedbackForm from './FeedbackForm'; const Feedback = ({ prompt, toggle, onFeedbackSent, ...formProps }) => ( <DropdownMenu right style={{ width: '400px', padding: 0 }}> <FeedbackForm onFeedbackSent={onFeedbackSent} prompt={prompt} onClose={toggle} {...formProps} /> </DropdownMenu> ); Feedback.propTypes = { prompt: PropTypes.string, toggle: PropTypes.func, onFeedbackSent: PropTypes.func, }; export default Feedback;