import { Button, Form, Input, Modal } from 'ui' export type FeedbackFields = { page: string title: string comment: string } type FeedbackModalProps = { visible: boolean page: string onCancel: () => void onSubmit: (values: FeedbackFields) => void } function FeedbackModal({ visible, page, onCancel, onSubmit }: FeedbackModalProps) { return (
{ const errors: Partial = {} if (!vals.title) { errors.title = 'Required' } if (!vals.comment) { errors.comment = 'Required' } return errors }} onReset={onCancel} onSubmit={onSubmit} > {({ isSubmitting }: { isSubmitting: boolean }) => ( <>
💡
Need help or support? This feedback form is for documentation improvements only. For technical support, please submit a{' '} support request .
)}
) } export { FeedbackModal }