Spaces:
Configuration error
Configuration error
Download frontend/src/components/features/feedback/feedback-modal.tsx from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 997 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/feedback/feedback-modal.tsx
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/components/features/feedback/feedback-modal.tsx
-
curl -L -o feedback-modal.tsx https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/components/features/feedback/feedback-modal.tsx
997 Bytes
| import { | |
| BaseModalTitle, | |
| BaseModalDescription, | |
| } from "#/components/shared/modals/confirmation-modals/base-modal"; | |
| import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop"; | |
| import { ModalBody } from "#/components/shared/modals/modal-body"; | |
| import { FeedbackForm } from "./feedback-form"; | |
| interface FeedbackModalProps { | |
| onClose: () => void; | |
| isOpen: boolean; | |
| polarity: "positive" | "negative"; | |
| } | |
| export function FeedbackModal({ | |
| onClose, | |
| isOpen, | |
| polarity, | |
| }: FeedbackModalProps) { | |
| if (!isOpen) return null; | |
| return ( | |
| <ModalBackdrop onClose={onClose}> | |
| <ModalBody className="border border-tertiary"> | |
| <BaseModalTitle title="Feedback" /> | |
| <BaseModalDescription description="To help us improve, we collect feedback from your interactions to improve our prompts. By submitting this form, you consent to us collecting this data." /> | |
| <FeedbackForm onClose={onClose} polarity={polarity} /> | |
| </ModalBody> | |
| </ModalBackdrop> | |
| ); | |
| } | |