Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/feedback-form/FeedbackModal.tsx
2500 views
1
/**
2
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
import Modal from "../components/Modal";
8
import FeedbackComponent from "./FeedbackComponent";
9
10
function FeedbackFormModal(props: { onClose: () => void }) {
11
const onClose = () => {
12
props.onClose();
13
};
14
15
return (
16
// TODO: Use title and buttons props
17
<Modal visible={true} onClose={onClose}>
18
<FeedbackComponent
19
onClose={onClose}
20
isModal={true}
21
isError={false}
22
message="We'd love to know what you think!"
23
/>
24
</Modal>
25
);
26
}
27
28
export default FeedbackFormModal;
29
30