UNPKG

622 BTypeScriptView Raw
1import { ModalHeaderProps } from 'reactstrap';
2import { AnalyticsType } from './Feedback';
3
4type FaceOption = {
5 icon?: string;
6 description?: string;
7};
8
9type AboutOption = {
10 icon?: string;
11 label?: React.ReactNode;
12};
13
14export interface FeedbackFormProps {
15 name: string;
16 onFeedbackSent?: (feedback?: { [key: string]: any }) => void;
17 faceOptions?: FaceOption[];
18 aboutOptions?: AboutOption[];
19 analytics?: AnalyticsType;
20 prompt?: string;
21 staticFields?: object;
22 modalHeaderProps?: ModalHeaderProps;
23}
24
25declare const FeedbackForm: React.FunctionComponent<FeedbackFormProps>;
26
27export default FeedbackForm;